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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/IIRFilter/iir-unstable.html

Issue 2857833003: Print warning if IIR filter is unstable (Closed)
Patch Set: Use stable IIR filter for test. Created 3 years, 7 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/IIRFilter/iir-unstable.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/IIRFilter/iir-unstable.html b/third_party/WebKit/LayoutTests/webaudio/IIRFilter/iir-unstable.html
new file mode 100644
index 0000000000000000000000000000000000000000..11fb1b7c417a624cc65aec3594f0ef094cf25b2a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/webaudio/IIRFilter/iir-unstable.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test Unstable IIR Filter</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../resources/audit-util.js"></script>
+ <script src="../resources/audit.js"></script>
+ </head>
+
+ <body>
+ <script>
+ let audit = Audit.createTaskRunner({requireResultFile: true});
+
+ audit.define('unstable', (task, should) => {
+ let context = new OfflineAudioContext(1, 1, 8000);
+ should(() => {
+ context.createIIRFilter([1], [1, 1.1]);
+ }, 'Creating unstable IIR filter with createIIRFilter([1], [1, 1.1])').notThrow();
+
+ task.done();
+ });
+
+ audit.run();
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698