Index: chrome/test/data/extensions/api_test/tab_capture/experimental/test.js |
diff --git a/chrome/test/data/extensions/api_test/tab_capture/experimental/test.js b/chrome/test/data/extensions/api_test/tab_capture/experimental/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb4c3467e81e82c6ad58d6c0feeaf835c0050595 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/tab_capture/experimental/test.js |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2012 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. |
+ |
+// TODO(justinlin): Test to make sure state transitions are correct. |
+ |
+var tabCapture = chrome.experimental.tabCapture; |
+var tabMediaRequestCallback = function(stream) { |
+ chrome.test.assertFalse(null == stream); |
+ chrome.test.succeed(); |
+}; |
+ |
+function runTests(tests) { |
+ chrome.test.getConfig(function(config) { |
+ operatingSystem = config.osName; |
+ chrome.test.runTests(tests); |
+ }); |
+} |
+ |
+chrome.test.runTests([ |
+ function getTabMedia() { |
+ tabCapture.getTabMedia(null, null, |
+ chrome.test.callbackPass(tabMediaRequestCallback)); |
+ } |
+]); |