Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / resources / form-and-frame-interaction-retains-values-main.html
index d28ad57..b0e598d 100644 (file)
@@ -1,46 +1,46 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">\r
-<html>\r
-<head>\r
-  <script>\r
-    if (window.testRunner) {\r
-        window.testRunner.dumpAsText();\r
-        window.testRunner.dumpChildFramesAsText();\r
-        window.testRunner.waitUntilDone();\r
-    }\r
-\r
-  function performTest() {\r
-    if(window.name == "submitted") {\r
-      window.name = "";\r
-      if(document.getElementById("text").value == "Correct Value")\r
-        document.getElementById("result").innerHTML = "PASS";\r
-      if (window.testRunner)\r
-        window.testRunner.notifyDone();\r
-    } else {\r
-      document.getElementById("text").value = "Old Value";\r
-      window.frames[0].location = "form-and-frame-interaction-retains-values-submit.html";\r
-      window.name="submitted";\r
-    }\r
-  }\r
-  </script>\r
-</head>\r
-\r
-<body onload="performTest()">\r
-\r
-    <p id="result">FAIL</p>\r
-    <p>\r
-        Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=18401">bug 18401</a></i>\r
-        Apparent caching between form submits.\r
-    </p>\r
-    <p>\r
-      In this test the main page is loaded in a frameset, which sets the value of an input field\r
-      in a form and has an iframe, which loads a page which submits the form.  The form's target\r
-      is the main page.  When the form is reloaded it should not have the value that was set\r
-      before the submission.\r
-    </p>\r
-    <hr>\r
-    <form action="form-and-frame-interaction-retains-values-main.html" method="post" name="emptyForm" id="emptyForm">\r
-      <input type="text" value="Correct Value" id="text">\r
-    </form>\r
-    <iframe></iframe>\r
-</body>\r
-</html>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+<head>
+  <script>
+    if (window.testRunner) {
+        window.testRunner.dumpAsText();
+        window.testRunner.dumpChildFramesAsText();
+        window.testRunner.waitUntilDone();
+    }
+
+  function performTest() {
+    if(window.name == "submitted") {
+      window.name = "";
+      if(document.getElementById("text").value == "Correct Value")
+        document.getElementById("result").innerHTML = "PASS";
+      if (window.testRunner)
+        window.testRunner.notifyDone();
+    } else {
+      document.getElementById("text").value = "Old Value";
+      window.frames[0].location = "form-and-frame-interaction-retains-values-submit.html";
+      window.name="submitted";
+    }
+  }
+  </script>
+</head>
+
+<body onload="performTest()">
+
+    <p id="result">FAIL</p>
+    <p>
+        Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=18401">bug 18401</a></i>
+        Apparent caching between form submits.
+    </p>
+    <p>
+      In this test the main page is loaded in a frameset, which sets the value of an input field
+      in a form and has an iframe, which loads a page which submits the form.  The form's target
+      is the main page.  When the form is reloaded it should not have the value that was set
+      before the submission.
+    </p>
+    <hr>
+    <form action="form-and-frame-interaction-retains-values-main.html" method="post" name="emptyForm" id="emptyForm">
+      <input type="text" value="Correct Value" id="text">
+    </form>
+    <iframe></iframe>
+</body>
+</html>