| Index: LayoutTests/battery-status/multiple-promises.html
|
| diff --git a/LayoutTests/battery-status/multiple-promises.html b/LayoutTests/battery-status/multiple-promises.html
|
| index a8eb5fdcedd5d87c27429a7b0461621ee510b2e3..5b3c8500b67fa7f8ed5b6eee4116b2d99ce48135 100644
|
| --- a/LayoutTests/battery-status/multiple-promises.html
|
| +++ b/LayoutTests/battery-status/multiple-promises.html
|
| @@ -48,7 +48,8 @@ function finishIfReady() {
|
| setTimeout(finishJSTest, 0);
|
| }
|
|
|
| -promise1 = navigator.getBattery().then(
|
| +promise1 = navigator.getBattery();
|
| +promise1.then(
|
| function(battery) {
|
| debug('first resolution');
|
| checkBatteryInfo(battery);
|
| @@ -56,7 +57,8 @@ promise1 = navigator.getBattery().then(
|
| finishIfReady();
|
| }, batteryStatusFailure);
|
|
|
| -promise2 = navigator.getBattery().then(
|
| +promise2 = navigator.getBattery();
|
| +promise2.then(
|
| function(battery) {
|
| debug('second resolution');
|
| checkBatteryInfo(battery);
|
| @@ -64,7 +66,7 @@ promise2 = navigator.getBattery().then(
|
| finishIfReady();
|
| }, batteryStatusFailure);
|
|
|
| -shouldBeFalse('promise1 === promise2');
|
| +shouldBeTrue('promise1 === promise2');
|
| setAndFireMockBatteryInfo(false, 10, 20, 0.5);
|
| </script>
|
| </body>
|
|
|