Chromium Code Reviews| Index: LayoutTests/webaudio/offlineaudiocontext-promise.html |
| diff --git a/LayoutTests/webaudio/offlineaudiocontext-promise.html b/LayoutTests/webaudio/offlineaudiocontext-promise.html |
| index 4f24b0cec3142609d1b89d710c77805e23f6f6bf..7c8c07a0a946a940a69b2c21e87211530ec23cee 100644 |
| --- a/LayoutTests/webaudio/offlineaudiocontext-promise.html |
| +++ b/LayoutTests/webaudio/offlineaudiocontext-promise.html |
| @@ -2,14 +2,14 @@ |
| <html> |
| <head> |
| <script src="../resources/js-test.js"></script> |
| - <script src="resources/audio-testing.js"/> |
| <script src="resources/compatibility.js"></script> |
| + <script src="resources/audio-testing.js"></script> |
|
Raymond Toy
2015/02/23 21:37:38
Does the order matter?
|
| <title>OfflineAudioContext.startRendering Promise with oncomplete</title> |
| </head> |
| <body> |
| <script> |
| - description("Test OfflineAudioContext.startRendering Promise with oncomplete") |
| + description("Test OfflineAudioContext.startRendering Promise with oncomplete"); |
| var context; |
| var promise; |
| @@ -27,20 +27,19 @@ |
| if (renderedData === promiseData) { |
| testPassed("AudioBuffer returned by oncomplete and promise are identical"); |
| } else { |
| - testPassed("AudioBuffer returned by oncomplete and promise are NOT identical"); |
| + testFailed("AudioBuffer returned by oncomplete and promise are NOT identical"); |
| } |
| finishJSTest(); |
| } |
| - function checkResult (event) |
| - { |
| + function checkResult (event) { |
| renderedData = event.renderedBuffer; |
| promise.then(function (result) { |
| - promiseData = result; |
| - compareData(); |
| - }); |
| - |
| + promiseData = result; |
| + compareData(); |
| + }); |
| } |
| + |
| // Create an offline context and verify that both the oncomplete and promise are returned with |
| // the same stuff. |
| function runTest() { |