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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.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 | « no previous file | third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.html b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.html
index 0f95405654d274a0478d46344246e69ff0611b3f..b972c6921b299e6e8141d2bafe494f5ca6063c9d 100644
--- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.html
+++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-copy-curve.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,7 +17,7 @@
var audit = Audit.createTaskRunner();
- audit.defineTask("test copying", function (taskDone) {
+ audit.define("test copying", (task, should) => {
// Two-channel context; channel 0 contains the test data and channel 1
// contains the expected result. Channel 1 has the normal WaveShaper
// output and channel 0 has the WaveShaper output with a modified curve.
@@ -73,16 +73,13 @@
// Modifying the wave shaper curve should not modify the output so the
// outputs from the two wave shaper nodes should be exactly identical.
- var success = Should("WaveShaper with modified curve", actual)
+ should(actual, "WaveShaper with modified curve")
.beEqualToArray(expected);
- Should("Summary: ", success).summarize(
- "Output correctly did not change with modified WaveShaper curve.",
- "Output incorrectly changed due to modified WaveShaper curve.");
- }).then(taskDone);
+ }).then(() => task.done());
});
- audit.runTasks();
+ audit.run();
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-simple.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698