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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/context-properties.html

Issue 2386303002: Expose BaseAudioContext prototype (Closed)
Patch Set: fixed cross-origin-objects Created 4 years, 1 month 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/compatibility.js"></script>
5 <script src="../resources/js-test.js"></script>
6 </head>
7
8 <body>
9 <script>
10 description("Tests audio context for offline attributes and methods.");
11
12 function runTest() {
13 // Create an online and offline context for testing.
14 onlineContext = new AudioContext();
15 offlineContext = new OfflineAudioContext(1, 1000, 44100);
16
17 // The online context cannot have oncomplete and startRendering
18 shouldBeUndefined("onlineContext.oncomplete");
19 shouldBeUndefined("onlineContext.startRendering");
20
21 // The offline context must have oncomplete and startRendering
22 shouldBeDefined("offlineContext.oncomplete");
23 shouldBeDefined("offlineContext.startRendering");
24
25 }
26
27 runTest();
28 successfullyParsed = true;
29 </script>
30
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698