Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / audiobuffersource-late-start.html
blob0f61eca7ae3b7ec693f278bc04da3ea455a2a268
1 <!DOCTYPE html>
2 <html>
4 <head>
5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 <script src="resources/late-start-testing.js"></script>
9 </head>
11 <body>
12 <script>
13 description('Test the late call of start(0) of BufferSource.');
14 window.jsTestIsAsync = true;
16 var audit = Audit.createTaskRunner();
18 var sampleRate = 44100;
20 // The long render length (30 seconds) is to make sure the |onstatechange|
21 // event gets fired to start the source, which can take quite a bit of time.
22 var renderLength = 30;
24 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRate);
25 var dcOffsetbuffer = createConstantBuffer(context, 1000, 1.0);
26 var source = context.createBufferSource();
27 source.buffer = dcOffsetbuffer;
29 // Test the buffer node is rendered correctly when the start time of start()
30 // call is in the past in terms of the context time.
31 runLateStartTest(audit, context, source);
33 successfullyParsed = true;
34 </script>
35 </body>
37 </html>