OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <div id="host" tabindex="1"> | 5 <div id="host" tabindex="1"> |
6 <input id="target" type="color" value="#000000"> | 6 <input id="target" type="color" value="#000000"> |
7 </div> | 7 </div> |
8 <script> | 8 <script> |
9 | 9 |
10 shadow = host.createShadowRoot(); | 10 shadow = host.createShadowRoot(); |
11 shadow.innerHTML = "<content></content>"; | 11 shadow.innerHTML = "<content></content>"; |
12 jsTestIsAsync = true; | 12 jsTestIsAsync = true; |
13 | 13 |
14 function waitUntilShown(then) | 14 function waitUntilShown(then) |
(...skipping 20 matching lines...) Expand all Loading... |
35 | 35 |
36 waitUntilShown(function() { | 36 waitUntilShown(function() { |
37 testRunner.setWindowIsKey(false); // This triggers a style recalc. | 37 testRunner.setWindowIsKey(false); // This triggers a style recalc. |
38 ensureOpeningFor(10, finishJSTest); // Try several times to ensure nothing
wrong happens asynchronously. | 38 ensureOpeningFor(10, finishJSTest); // Try several times to ensure nothing
wrong happens asynchronously. |
39 }); | 39 }); |
40 } | 40 } |
41 | 41 |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |