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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js

Issue 17354003: Hook up HTML5 fullscreen video notifications to tabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable for Aura and Linux Release, tested manually. Created 7 years, 6 months 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
« no previous file with comments | « chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js b/chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..0c0adf313a8c5d08645bd82fd63dcfc17e745dcf
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var mediaStream = null;
+var events = [];
+
+chrome.tabCapture.onStatusChanged.addListener(function(info) {
+ if (info.status == 'active') {
+ events.push(info.fullscreen);
+ if (events.length == 3) {
+ chrome.test.assertFalse(events[0]);
+ chrome.test.assertTrue(events[1]);
+ chrome.test.assertFalse(events[2]);
+ mediaStream.stop();
+ chrome.test.succeed();
+ }
+ }
+});
+
+chrome.tabCapture.capture({audio: true, video: true}, function(stream) {
+ chrome.test.assertTrue(!!stream);
+ mediaStream = stream;
+
+ chrome.test.notifyPass();
+ chrome.test.sendMessage('ready1', function() {
+ chrome.test.sendMessage('ready2', function() {});
+ });
+});
« no previous file with comments | « chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698