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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html

Issue 2593043003: Convert AudioBufferSource tests using Audit to testharness (Closed)
Patch Set: Missed a couple testFailed calls. Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html
index c3cba0f430a643c3e08f0543134a9d5673c3f3d0..803e98d6f2868a28639ad393dfcb1f962f5b863b 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-late-start.html
@@ -2,15 +2,14 @@
<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>
</head>
<body>
<script>
- description('Test the late call of start(0) of BufferSource.');
- window.jsTestIsAsync = true;
var renderQuantum = 128;
@@ -69,17 +68,14 @@
Should('The index of value change', nonZeroValueIndex)
.beEqualTo(startIndex);
- if (nonZeroValueIndex === 0)
- testFailed('The first sample was non-zero value. It should be zero.');
- else
- testPassed('The rendered buffer contains non-zero values after the first sample.');
-
+ Should('The index of the first non-zero sample', nonZeroValueIndex)
+ .notBeEqualTo(0)
+
}).then(done);
});
audit.defineTask('finish-test', function (done) {
done();
- finishJSTest();
});
audit.runTasks();

Powered by Google App Engine
This is Rietveld 408576698