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

Unified 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698