OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 function startAnimation() | 5 function startAnimation() |
6 { | 6 { |
7 node.animate([{ width: "1000px" }, { width: "2000px" }], 1000); | 7 node.animate([{ width: "1000px" }, { width: "2000px" }], 1000); |
8 } | 8 } |
9 | 9 |
10 function rafWidth(resolve, reject) | 10 function rafWidth(resolve, reject) |
11 { | 11 { |
12 var callback; | 12 var callback; |
13 var promise = new Promise((fulfill) => callback = fulfill); | 13 var promise = new Promise((fulfill) => callback = fulfill); |
(...skipping 28 matching lines...) Expand all Loading... |
42 }); | 42 }); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
49 <div id="node" style="background-color: red; height: 100px; width: 100px"></
div> | 49 <div id="node" style="background-color: red; height: 100px; width: 100px"></
div> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |