Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-set-same-src.html
blobcffc54ce26a0adde002d4fbab9fabb20f193577c
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <script>
7 if (window.testRunner)
8 testRunner.waitUntilDone();
10 function rightFrameLoaded() {
11 rightFrameLoadCount++;
12 if (rightFrameLoadCount == 2) {
13 // Console is set by runTest
14 console.firstChild.nodeValue = "SUCCESS";
16 if (window.testRunner) {
17 // Put the test result in the main document so we can dump as text
18 var text = console.ownerDocument.documentElement.innerHTML;
19 document.open();
20 document.write(text);
21 document.close();
23 testRunner.dumpAsText();
24 testRunner.notifyDone();
29 function runTest() {
30 console = document.getElementById("left_frame").contentWindow.document.getElementById("console");
31 if (console.firstChild.nodeValue == "FAILURE") {
32 console.firstChild.nodeValue = "PROCESSING...";
33 document.getElementById("right_frame").src = "resources/purple.html";
34 } else {
35 alert('TEST FAILURE: Unexpected onload call')
39 rightFrameLoadCount = 0;
40 </script>
41 </head>
42 <frameset onload="runTest()" cols="50%,*">
43 <frame id="left_frame" src="data:text/html,<body><p>Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=3400'>bug 3400</a>: setting the .src of an iframe to the same value does not reload page.</p><p>Testing that setting an src of a frame to the same value works</p><p id=console>FAILURE</p></body>">
44 <frame id="right_frame" onload="javascript:rightFrameLoaded()" src="resources/purple.html"></frame>
45 </frameset>
46 </html>