Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 var global = this; | |
| 2 if (global.importScripts) { | |
| 3 importScripts('/resources/testharness.js'); | |
| 4 } | |
| 5 | |
| 6 promise_test(function(test) { | |
| 7 return Promise.resolve().then(function() { | |
| 8 return fetch(new Request('/fetch/resources/hello.txt')); | |
| 9 }).then(function(res) { | |
|
hiroshige
2014/12/19 07:41:20
Indent +2 spaces.
yhirano
2014/12/19 09:29:08
Done.
| |
| 10 return res.text(); | |
| 11 }).then(function(text) { | |
|
hiroshige
2014/12/19 07:41:20
Indent +2 spaces.
yhirano
2014/12/19 09:29:08
Done.
| |
| 12 assert_equals(text, 'hello, world\n'); | |
|
hiroshige
2014/12/19 07:41:20
Add an assert message such as "Response text shoul
yhirano
2014/12/19 09:29:08
Done.
| |
| 13 }); | |
|
hiroshige
2014/12/19 07:41:20
Indent +2 spaces.
yhirano
2014/12/19 09:29:08
Done.
| |
| 14 }); | |
|
hiroshige
2014/12/19 07:41:20
Indent +2 spaces.
yhirano
2014/12/19 09:29:08
Done.
| |
| 15 | |
| 16 done(); | |
| OLD | NEW |