Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / frames / frame-src-attribute.html
index 244c0d9..17a16b0 100644 (file)
@@ -1,33 +1,33 @@
-<html>\r
-<head>\r
-<script>\r
-\r
-if (window.testRunner) {\r
-    testRunner.dumpAsText();\r
-    testRunner.dumpChildFramesAsText();\r
-}\r
-\r
-function write(s)\r
-{\r
-    frames[0].document.getElementById('console').appendChild(document.createTextNode(s));\r
-}\r
-\r
-function test() {\r
-    var layoutTestDir = location.href;\r
-    layoutTestDir = layoutTestDir.substring(layoutTestDir.indexOf("LayoutTests"), layoutTestDir.lastIndexOf("/"));\r
-\r
-    var frameSrc = document.getElementsByTagName('frame')[1].src;\r
-    if (frameSrc.search(layoutTestDir) != -1)\r
-        write("PASS: Frame 'src' attribute should include '" + layoutTestDir + "' and does.");\r
-    else\r
-        write("FAIL: Frame 'src' attribute should include '" + layoutTestDir + "' but instead is '" + frameSrc + "'.");\r
-}\r
-</script>\r
-</head>\r
-\r
-<frameset onload="test()">\r
-<frame src="data:text/html,<p>This test checks whether a frame element's 'src' attribute is a complete, rather than relative, URL.</p><pre id='console'></pre>">\r
-<frame src="resources/frame-src-attribute-subframe.html">\r
-</frameset>\r
-\r
-</html>\r
+<html>
+<head>
+<script>
+
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.dumpChildFramesAsText();
+}
+
+function write(s)
+{
+    frames[0].document.getElementById('console').appendChild(document.createTextNode(s));
+}
+
+function test() {
+    var layoutTestDir = location.href;
+    layoutTestDir = layoutTestDir.substring(layoutTestDir.indexOf("LayoutTests"), layoutTestDir.lastIndexOf("/"));
+
+    var frameSrc = document.getElementsByTagName('frame')[1].src;
+    if (frameSrc.search(layoutTestDir) != -1)
+        write("PASS: Frame 'src' attribute should include '" + layoutTestDir + "' and does.");
+    else
+        write("FAIL: Frame 'src' attribute should include '" + layoutTestDir + "' but instead is '" + frameSrc + "'.");
+}
+</script>
+</head>
+
+<frameset onload="test()">
+<frame src="data:text/html,<p>This test checks whether a frame element's 'src' attribute is a complete, rather than relative, URL.</p><pre id='console'></pre>">
+<frame src="resources/frame-src-attribute-subframe.html">
+</frameset>
+
+</html>