Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: LayoutTests/webaudio/offlineaudiocontext-promise.html

Issue 928073004: Fixing typos and errors in webaudio/offlinecontext-promise.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698