Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-src-attribute.html
blob17a16b09242b55845d2bb1db1c74711b308931d8
1 <html>
2 <head>
3 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
10 function write(s)
12 frames[0].document.getElementById('console').appendChild(document.createTextNode(s));
15 function test() {
16 var layoutTestDir = location.href;
17 layoutTestDir = layoutTestDir.substring(layoutTestDir.indexOf("LayoutTests"), layoutTestDir.lastIndexOf("/"));
19 var frameSrc = document.getElementsByTagName('frame')[1].src;
20 if (frameSrc.search(layoutTestDir) != -1)
21 write("PASS: Frame 'src' attribute should include '" + layoutTestDir + "' and does.");
22 else
23 write("FAIL: Frame 'src' attribute should include '" + layoutTestDir + "' but instead is '" + frameSrc + "'.");
25 </script>
26 </head>
28 <frameset onload="test()">
29 <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>">
30 <frame src="resources/frame-src-attribute-subframe.html">
31 </frameset>
33 </html>