Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |