Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html b/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..72e349a80ddf129cb7bcdcbd8d8d962471c67156 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html |
| @@ -0,0 +1,40 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <title>Testing AudioContext properties</title> |
| + <script src="../resources/testharness.js"></script> |
| + <script src="../resources/testharnessreport.js"></script> |
| + <script src="resources/audio-testing.js"></script> |
| + <script src="resources/context-properties.js"></script> |
| +</head> |
| +<body> |
| + <script> |
| + var audit = Audit.createTaskRunner(); |
| + |
| + |
| + audit.defineTask('audiocontext-properties', function (taskDone) { |
| + |
| + // Check the properties that belongs to AC. |
| + checkContextProperties({ |
| + targetPrototype: AudioContext.prototype, |
| + 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
|
| + propertyDict: AudioContextOwnProperties, |
| + expected: true |
| + }, Should); |
| + |
| + // Check the properties that only belongs to OAC. |
| + checkContextProperties({ |
| + targetPrototype: AudioContext.prototype, |
| + targetDescription: 'AudioContext.prototype', |
| + propertyDict: OfflineAudioContextOwnProperties, |
| + expected: false |
| + }, Should); |
| + |
| + taskDone(); |
| + }); |
| + |
| + |
| + audit.runTasks(); |
| + </script> |
| +</body> |
| +</html> |