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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html

Issue 2568573002: Additional unit test for audit.js: failure cases and logging examples. (Closed)
Patch Set: Simplify containValues() algorithm and error message Created 4 years 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/unit-tests/audit.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
index 1982fd30043ab51f2af48f218be7d1ddd5d1b474..73a034f63f7e84c0775759f9a0b40df73faea35b 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -8,7 +8,8 @@
</head>
<body>
<script>
- var audit = Audit.createTaskRunner();
+ var audit = Audit.createTaskRunner({ requireResultFile: true });
+
// Basic assertion testing.
audit.define('basic', function (task, should) {
@@ -30,7 +31,8 @@
let oac = new OfflineAudioContext(1, 128, 44100);
Promise.all([
should(oac.startRendering(), 'Start OAC rendering').beResolved(),
- should(oac.decodeAudioData()).beRejected()
+ should(oac.decodeAudioData(), 'Decoding audio data with no argument')
+ .beRejected()
]).then(task.done.bind(task));
});

Powered by Google App Engine
This is Rietveld 408576698