OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test-pre.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
5 <link rel="import" href="http://127.0.0.1:8000/htmlimports/resources/hello-paren
t.html"> | 5 <link rel="import" href="http://127.0.0.1:8000/htmlimports/resources/hello-paren
t.html"> |
6 <script> | 6 <script> |
7 description("HTML Imports should work with cached resources."); | 7 description("HTML Imports should work with cached resources."); |
8 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
9 if (window.location.search.toString() == "?reloaded") { | 9 if (window.location.search.toString() == "?reloaded") { |
10 debug("PASS"); | 10 debug("PASS"); |
11 window.setTimeout(finishJSTest, 0); | 11 window.setTimeout(finishJSTest, 0); |
12 } else { | 12 } else { |
13 // This need to be async so that js-test-post.js is executed. | 13 // This need to be async so that js-test-post.js is executed. |
14 window.setTimeout(function() { | 14 window.setTimeout(function() { |
15 window.location = window.location.toString() + "?reloaded"; | 15 window.location = window.location.toString() + "?reloaded"; |
16 }, 0); | 16 }, 0); |
17 } | 17 } |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <body> | 20 <body> |
21 </body> | 21 </body> |
22 </html> | 22 </html> |
OLD | NEW |