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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html

Issue 2783553002: Convert AudioBufferSource tests to new Audit (Closed)
Patch Set: Indent neatly. Created 3 years, 8 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
Index: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html
index df24eb4ae02906a524c330d246fa4aa6350f5b84..d1b1aabdd737571ea067736e12c648a744fb4d53 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-playbackrate.html
@@ -5,7 +5,7 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit-util.js"></script>
- <script src="../resources/audio-testing.js"></script>
+ <script src="../resources/audit.js"></script>
</head>
<body>
<script>
@@ -91,7 +91,7 @@
// Test if AudioBufferSourceNode.playbackRate can playback at different rates
// properly.
- audit.defineTask("playbackrate-test", function (taskDone) {
+ audit.define("playbackrate-test", (task, should) => {
let context = new OfflineAudioContext(2, totalDuration *
sampleRate,
sampleRate);
@@ -118,7 +118,7 @@
let octaveActual = actual.subarray(start, end);
let octaveExpected = expected.subarray(start, end);
- compareBuffersWithConstraints(octaveActual, octaveExpected,
+ compareBuffersWithConstraints(should, octaveActual, octaveExpected,
{
prefix: i,
thresholdSNR: testConstraints[i].thresholdSNR,
@@ -127,10 +127,10 @@
}
})
- .then(taskDone);
+ .then(() => task.done());
});
- audit.runTasks();
+ audit.run();
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698