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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start.html

Issue 2693853004: Fix flakiness in webaudio/Oscillator/oscillator-late-start.html (Closed)
Patch Set: Fixed assertion message after l-g-t-m Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 3
4 <head> 4 <head>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audio-testing.js"></script> 7 <script src="../resources/audio-testing.js"></script>
8 <script src="../resources/late-start-testing.js"></script> 8 <script src="../resources/late-start-testing.js"></script>
9 </head> 9 </head>
10 10
11 <body> 11 <body>
12 <script> 12 <script>
13 description('Test the late call of start(0) of Oscillator.'); 13 description('Test the late call of start(0) of Oscillator.');
14 window.jsTestIsAsync = true; 14 window.jsTestIsAsync = true;
15 15
16 var audit = Audit.createTaskRunner(); 16 var audit = Audit.createTaskRunner();
17 17
18 var sampleRate = 44100; 18 var sampleRate = 44100;
19 19
20 // The long render length (20 seconds) is to make sure the |onstatechange| 20 var renderLength = 1;
21 // event gets fired to start the source, which can take quite a bit of time.
22 var renderLength = 20;
23 21
24 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te); 22 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te);
25 var osc = context.createOscillator(); 23 var osc = context.createOscillator();
26 24
27 // Test the oscillator node is rendered correctly when the start time of sta rt() 25 // Test the oscillator node is rendered correctly when the start time of sta rt()
28 // call is in the past in terms of the context time. 26 // call is in the past in terms of the context time.
29 runLateStartTest(audit, context, osc); 27 runLateStartTest(audit, context, osc);
30 28
31 successfullyParsed = true; 29 successfullyParsed = true;
32 </script> 30 </script>
33 </body> 31 </body>
34 32
35 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698