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

Side by Side Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 212793002: Fix attributes types on AnalyserNode as specification of web audio. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove webkit prefix in testcase Created 6 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/compatibility.js"></script> 4 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="../resources/js-test.js"></script> 6 <script src="../resources/js-test.js"></script>
7 <script src="resources/biquad-testing.js"></script> 7 <script src="resources/biquad-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Analysers 71 // Analysers
72 node = context.createAnalyser(); 72 node = context.createAnalyser();
73 // Invalid fftSize: IndexSizeError 73 // Invalid fftSize: IndexSizeError
74 shouldThrow("node.fftSize = 42"); 74 shouldThrow("node.fftSize = 42");
75 shouldThrow("node.fftSize = 16"); 75 shouldThrow("node.fftSize = 16");
76 shouldThrow("node.fftSize = 4096"); 76 shouldThrow("node.fftSize = 4096");
77 77
78 shouldThrow("node.minDecibels = -10"); 78 shouldThrow("node.minDecibels = -10");
79 shouldThrow("node.maxDecibels = -150"); 79 shouldThrow("node.maxDecibels = -150");
80 shouldThrow("node.minDecibels = -30");
81 shouldThrow("node.maxDecibels = -100");
80 shouldThrow("node.smoothingTimeConstant = -0.1"); 82 shouldThrow("node.smoothingTimeConstant = -0.1");
81 shouldThrow("node.smoothingTimeConstant = 1.5"); 83 shouldThrow("node.smoothingTimeConstant = 1.5");
82 84
83 // AudioBuffers 85 // AudioBuffers
84 node = context.createBuffer(1,1, context.sampleRate); 86 node = context.createBuffer(1,1, context.sampleRate);
85 // Invalid channel index: IndexSizeError 87 // Invalid channel index: IndexSizeError
86 shouldThrow("node.getChannelData(2)"); 88 shouldThrow("node.getChannelData(2)");
87 89
88 // AudioNode connections 90 // AudioNode connections
89 node = context.createGain(); 91 node = context.createGain();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 shouldNotThrow("conv = oc.createConvolver()"); 179 shouldNotThrow("conv = oc.createConvolver()");
178 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); 180 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)");
179 } 181 }
180 182
181 runTest(); 183 runTest();
182 successfullyParsed = true; 184 successfullyParsed = true;
183 185
184 </script> 186 </script>
185 </body> 187 </body>
186 </html> 188 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | LayoutTests/webaudio/realtimeanalyser-basic.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698