| OLD | NEW |
| 1 <?xml version="1.0" encoding="iso-8859-1"?> | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> | 3 <head> |
| 4 <title>HTML Test: Browsing context is first created</title> | 4 <title>HTML Test: Browsing context is first created</title> |
| 5 <link rel="author" title="Intel" href="http://www.intel.com/" /> | 5 <link rel="author" title="Intel" href="http://www.intel.com/" /> |
| 6 <script src="../../../../../resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="../../../../../resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <div id="log"></div> | 10 <div id="log"></div> |
| 11 <script> | 11 <script> |
| 12 <![CDATA[ | 12 <![CDATA[ |
| 13 | 13 |
| 14 var doc, iframe; | 14 var doc, iframe; |
| 15 | 15 |
| 16 setup(function () { | 16 setup(function () { |
| 17 iframe = document.createElement("iframe"); | 17 iframe = document.createElement("iframe"); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 assert_equals(doc.documentElement.childNodes[0].tagName, "HEAD", "The firs
t child of HTML element should be a HEAD element."); | 45 assert_equals(doc.documentElement.childNodes[0].tagName, "HEAD", "The firs
t child of HTML element should be a HEAD element."); |
| 46 assert_false(doc.documentElement.childNodes[0].hasChildNodes(), "The HEAD
element should not have children."); | 46 assert_false(doc.documentElement.childNodes[0].hasChildNodes(), "The HEAD
element should not have children."); |
| 47 assert_equals(doc.documentElement.childNodes[1].tagName, "BODY", "The seco
nd child of HTML element should be a BODY element."); | 47 assert_equals(doc.documentElement.childNodes[1].tagName, "BODY", "The seco
nd child of HTML element should be a BODY element."); |
| 48 assert_false(doc.documentElement.childNodes[1].hasChildNodes(), "The BODY
element should not have children."); | 48 assert_false(doc.documentElement.childNodes[1].hasChildNodes(), "The BODY
element should not have children."); |
| 49 }, "Check the document's content"); | 49 }, "Check the document's content"); |
| 50 | 50 |
| 51 ]]> | 51 ]]> |
| 52 </script> | 52 </script> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |