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

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

Issue 2386303002: Expose BaseAudioContext prototype (Closed)
Patch Set: Rebase 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 <title>Testing AudioContext properties</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 <script src="resources/context-properties.js"></script>
9 </head>
10 <body>
11 <script>
12 var audit = Audit.createTaskRunner();
13
14
15 audit.defineTask('audiocontext-properties', function (taskDone) {
16
17 // Check the properties that belongs to AC.
18 checkContextProperties({
19 targetPrototype: AudioContext.prototype,
20 targetDescription: 'AudioContext.prototype',
Raymond Toy 2016/11/02 22:10:09 Can't you just print out targetPrototype name in t
hongchan 2016/11/02 22:46:50 How can I do that? Just curious. I am not sure how
Raymond Toy 2016/11/02 23:01:07 Maybe set targetPrototype to "AudioContext", and u
21 propertyDict: AudioContextOwnProperties,
22 expected: true
23 }, Should);
24
25 // Check the properties that only belongs to OAC.
26 checkContextProperties({
27 targetPrototype: AudioContext.prototype,
28 targetDescription: 'AudioContext.prototype',
29 propertyDict: OfflineAudioContextOwnProperties,
30 expected: false
31 }, Should);
32
33 taskDone();
34 });
35
36
37 audit.runTasks();
38 </script>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698