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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioNode/channel-mode-interp-basic.html

Issue 2781943002: Convert AudioNode tests to new Audit (Closed)
Patch Set: Created 3 years, 9 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/AudioNode/audionode-disconnect-audioparam.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/AudioNode/channel-mode-interp-basic.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioNode/channel-mode-interp-basic.html b/third_party/WebKit/LayoutTests/webaudio/AudioNode/channel-mode-interp-basic.html
index 6805878cd294961ca8cc89ba190d7e4abf1cf150..1d3511d1ff16b8b38c71e76b8ab7de09295df19a 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioNode/channel-mode-interp-basic.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioNode/channel-mode-interp-basic.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>
@@ -17,42 +17,43 @@
var audit = Audit.createTaskRunner();
- audit.defineTask("interp", function (taskDone) {
+ audit.define("interp", (task, should) => {
var context = new OfflineAudioContext(1, renderFrames, sampleRate);
var node = context.createGain();
// Set a new interpretation and verify that it changed.
node.channelInterpretation = "discrete";
var value = node.channelInterpretation;
- Should("node.channelInterpretation", value).beEqualTo("discrete");
+ should(value, "node.channelInterpretation").beEqualTo("discrete");
node.connect(context.destination);
context.startRendering().then(function (buffer) {
// After rendering, the value should have been changed.
- Should("After rendering node.channelInterpretation",
- node.channelInterpretation)
+ should(node.channelInterpretation,
+ "After rendering node.channelInterpretation")
.beEqualTo("discrete");
- }).then(taskDone);
+ }).then(() => task.done());
});
- audit.defineTask("mode", function (taskDone) {
+ audit.define("mode", (task, should) => {
var context = new OfflineAudioContext(1, renderFrames, sampleRate);
var node = context.createGain();
// Set a new mode and verify that it changed.
node.channelCountMode = "explicit";
var value = node.channelCountMode;
- Should("node.channelCountMode", value).beEqualTo("explicit");
+ should(value, "node.channelCountMode").beEqualTo("explicit");
node.connect(context.destination);
context.startRendering().then(function (buffer) {
// After rendering, the value should have been changed.
- Should("After rendering node.channelCountMode",
- node.channelCountMode)
+ should(node.channelCountMode,
+ "After rendering node.channelCountMode")
.beEqualTo("explicit");
- }).then(taskDone);
+ }).then(() => task.done());
});
- audit.runTasks();
+
+ audit.run();
</script>
</body>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-disconnect-audioparam.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698