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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html

Issue 2593083002: Convert AudioBuffer Audit tests to testharness (Closed)
Patch Set: Rebase Created 3 years, 12 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 | third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html b/third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html
index dc6b00c6eb4fa3ad122e6fa5b3720efb8c8bca73..fe1567ff98e9c0c6fb924800fa6c25a79e77f898 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel.html
@@ -1,7 +1,8 @@
<!doctype html>
<html>
<head>
- <script src="../../resources/js-test.js"></script>
+ <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>
<title>Test Basic Functionality of AudioBuffer.copyFromChannel and AudioBuffer.copyToChannel</title>
@@ -9,9 +10,7 @@
<body>
<script>
- description("Test Basic Functionality of copyFromChannel and AudioBuffer.copyToChannel");
- window.jsTestIsAsync = true;
// Define utility routines.
@@ -104,7 +103,9 @@
// Test that expected exceptions are signaled for copyFrom.
audit.defineTask("copyFrom-exceptions", function (done) {
- shouldBeDefined("AudioBuffer.prototype.copyFromChannel");
+ Should("AudioBuffer.prototype.copyFromChannel",
+ AudioBuffer.prototype.copyFromChannel)
+ .exist();
Should("buffer = context.createBuffer(" + numberOfChannels + ", " + bufferLength + ", context.sampleRate)",
function () {
@@ -129,14 +130,18 @@
buffer.copyFromChannel(x, 0, bufferLength);
}).throw("IndexSizeError");
- shouldThrow("buffer.copyFromChannel(x, 3)");
+ Should("buffer.copyFromChannel(x, 3)", function () {
+ buffer.copyFromChannel(x, 3);
+ }).throw("IndexSizeError");
done();
});
// Test that expected exceptions are signaled for copyTo.
audit.defineTask("copyTo-exceptions", function (done) {
- shouldBeDefined("AudioBuffer.prototype.copyToChannel");
+ Should("AudioBuffer.prototype.copyToChannel",
+ AudioBuffer.prototype.copyToChannel)
+ .exist();
Should("buffer.copyToChannel(null, 0)", function () {
buffer.copyToChannel(null, 0);
}).throw("TypeError");
@@ -156,7 +161,9 @@
buffer.copyToChannel(x, 0, bufferLength);
}).throw("IndexSizeError");
- shouldThrow("buffer.copyToChannel(x, 3)");
+ Should("buffer.copyToChannel(x, 3)", function () {
+ buffer.copyToChannel(x, 3);
+ }).throw("IndexSizeError");
done();
});
@@ -244,7 +251,6 @@
});
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer-copy-channel-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698