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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html

Issue 2862413003: Convert ScriptProcessorNode tests to us new Audit (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessor-offlineaudiocontext.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
index ea933f15c178da7a822ee6fce8be2a0b578f9841..0f612603d0218db7e580c26372f189b8ed77adcc 100644
--- a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
+++ b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.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>
@@ -16,33 +16,39 @@
var scriptNode2;
var analyzer;
- audit.defineTask("initialize", function (done) {
- Should("context = new OfflineAudioContext(1, 1024, 44100)", function () {
+ audit.define('initialize', (task, should) => {
+ should(function() {
context = new OfflineAudioContext(1, 1024, 44100);
- }).notThrow();
- Should("analyzer = context.createAnalyser()", function () {
+ }, 'context = new OfflineAudioContext(1, 1024, 44100)').notThrow();
+ should(function() {
analyzer = context.createAnalyser();
- }).notThrow();
- Should("scriptNode1 = context.createScriptProcessor(1024, 11, 0)", function () {
- scriptNode1 = context.createScriptProcessor(1024, 11, 0);
- }).notThrow();
- Should("scriptNode2 = context.createScriptProcessor(1024, 1, 1)", function () {
- scriptNode2 = context.createScriptProcessor(1024, 1, 1);
- }).notThrow();
- done();
+ }, 'analyzer = context.createAnalyser()').notThrow();
+ should(
+ function() {
+ scriptNode1 = context.createScriptProcessor(1024, 11, 0);
+ },
+ 'scriptNode1 = context.createScriptProcessor(1024, 11, 0)')
+ .notThrow();
+ should(
+ function() {
+ scriptNode2 = context.createScriptProcessor(1024, 1, 1);
+ },
+ 'scriptNode2 = context.createScriptProcessor(1024, 1, 1)')
+ .notThrow();
+ task.done();
});
- audit.defineTask("test", function (done) {
- Should("scriptNode1.connect(analyzer)", function () {
+ audit.define('test', (task, should) => {
+ should(function() {
scriptNode1.connect(analyzer);
- }).throw("InvalidAccessError");
- Should("scriptNode2.connect(analyzer)", function () {
+ }, 'scriptNode1.connect(analyzer)').throw('InvalidAccessError');
+ should(function() {
scriptNode2.connect(analyzer);
- }).notThrow();
- done();
+ }, 'scriptNode2.connect(analyzer)').notThrow();
+ task.done();
});
- audit.runTasks();
+ audit.run();
</script>
</body>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessor-offlineaudiocontext.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698