| OLD | NEW |
| 1 importScripts('./js-test-pre.js'); | 1 importScripts('./js-test-pre.js'); |
| 2 | 2 |
| 3 description('Test Promise.'); | 3 description('Test Promise.'); |
| 4 | 4 |
| 5 var global = this; | 5 var global = this; |
| 6 | 6 |
| 7 global.jsTestIsAsync = true; | 7 global.jsTestIsAsync = true; |
| 8 | 8 |
| 9 new Promise(function(r) { r.fulfill('hello'); }) | 9 new Promise(function(resolve) { resolve('hello'); }) |
| 10 .then() | 10 .then() |
| 11 .then(function(result) { | 11 .then(function(result) { |
| 12 global.result = result; | 12 global.result = result; |
| 13 shouldBeEqualToString('result', 'hello'); | 13 shouldBeEqualToString('result', 'hello'); |
| 14 finishJSTest(); | 14 finishJSTest(); |
| 15 }); | 15 }); |
| 16 | 16 |
| 17 | 17 |
| OLD | NEW |