OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('Test Promise.race'); | 10 description('Test Promise.race'); |
11 | 11 |
12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
13 result = undefined; | 13 result = undefined; |
14 | 14 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }, function() { | 88 }, function() { |
89 testFailed('Promise.race([p4,42]) is rejected.'); | 89 testFailed('Promise.race([p4,42]) is rejected.'); |
90 }); | 90 }); |
91 }).then(finishJSTest, finishJSTest); | 91 }).then(finishJSTest, finishJSTest); |
92 | 92 |
93 shouldBe('result', 'undefined'); | 93 shouldBe('result', 'undefined'); |
94 | 94 |
95 </script> | 95 </script> |
96 </body> | 96 </body> |
97 </html> | 97 </html> |
OLD | NEW |