| 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-pre.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'); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 window.result = result; | 86 window.result = result; |
| 87 shouldBe('result', '42'); | 87 shouldBe('result', '42'); |
| 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 <script src="resources/js-test-post.js"></script> | |
| 97 </body> | 96 </body> |
| 98 </html> | 97 </html> |
| OLD | NEW |