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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html

Issue 2790893003: Convert WaveShaper tests to use 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/WaveShaper/waveshaper-copy-curve.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/WaveShaper/waveshaper-simple.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
index 5fffb09ecba86c89dd8d99613d936cffa4db7263..1ad889a2e0f548c2a957406b51ac80f236c3f014 100644
--- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
+++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html
@@ -5,45 +5,45 @@
<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>
var audit = Audit.createTaskRunner();
- audit.defineTask("simple", function (taskDone) {
+ audit.define("simple", (task, should) => {
var context = new OfflineAudioContext(1, 1, 48000);
var shaper = context.createWaveShaper();
// Verify default values are correct.
- Should("WaveShaper.curve", shaper.curve).beEqualTo(null);
- Should("WaveShaper.oversample", shaper.oversample).beEqualTo("none");
+ should(shaper.curve, "WaveShaper.curve").beEqualTo(null);
+ should(shaper.oversample, "WaveShaper.oversample").beEqualTo("none");
// Set oversample and verify that it is set correctly.
shaper.oversample = "2x";
- Should('Waveshaper.oversample = "2x"', shaper.oversample).beEqualTo("2x");
+ should(shaper.oversample, 'Waveshaper.oversample = "2x"').beEqualTo("2x");
shaper.oversample = "4x";
- Should('Waveshaper.oversample = "4x"', shaper.oversample).beEqualTo("4x");
+ should(shaper.oversample, 'Waveshaper.oversample = "4x"').beEqualTo("4x");
shaper.oversample = "invalid";
- Should('Waveshaper.oversample = "invalid"', shaper.oversample).beEqualTo("4x");
+ should(shaper.oversample, 'Waveshaper.oversample = "invalid"').beEqualTo("4x");
// Set the curve and verify that the returned curve is the same as what
// it was set to.
var curve = Float32Array.from([-1, 0.25, .75]);
shaper.curve = curve;
- Should("WaveShaper.curve", shaper.curve).beEqualToArray(curve);
+ should(shaper.curve, "WaveShaper.curve").beEqualToArray(curve);
// Verify setting the curve to null works.
shaper.curve = null;
- Should("Waveshaper.curve = null", shaper.curve).beEqualTo(null);
+ should(shaper.curve, "Waveshaper.curve = null").beEqualTo(null);
- taskDone();
+ task.done();
});
- audit.runTasks();
+ audit.run();
</script>
</body>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698