Index: chrome/test/data/extensions/hangout_services_test.html |
diff --git a/chrome/test/data/extensions/hangout_services_test.html b/chrome/test/data/extensions/hangout_services_test.html |
index 90c128c9b678246790f8a49c1360ac8867bb88ce..ed1fcc57e422686fc584fc4b0a4cffecec00ef5c 100644 |
--- a/chrome/test/data/extensions/hangout_services_test.html |
+++ b/chrome/test/data/extensions/hangout_services_test.html |
@@ -13,7 +13,8 @@ the Hangout Services component extension and the APIs it uses. |
</script> |
<script> |
// |
-// UI glue, leaving in HTML file with the UI elements it is using. |
+// UI glue and other code that needs to use the document. Leaving in |
+// HTML file with the UI elements it is using. |
// |
// Populates UI elements with initial contents. |
@@ -69,6 +70,39 @@ function getAssociatedDeviceFromSelection() { |
alert('Associated sink ID: ' + sinkId); |
}); |
} |
+ |
+// |
+// Manual tests. |
+// |
+ |
+function manualTestChooseDesktopMedia() { |
+ chooseDesktopMedia(function(results) { |
+ alert('Cancel ID: ' + results.cancelId + |
+ ', stream ID: ' + results.streamId); |
+ }); |
+} |
+ |
+function manualTestListenForSinksChangedEvent() { |
+ listenForSinksChangedEvent(function(msg) { |
+ if (msg['eventName'] && msg['eventName'] == 'onSinksChanged') |
+ alert('Got onSinksChanged event.'); |
+ }); |
+} |
+ |
+// Browser test scaffolding. Starts the test run from a browser |
+// test. Sets the document title to 'success' or 'failure' when the |
+// test completes. |
+function browsertestRunAllTests() { |
+ runAllTests(function(results) { |
+ if (results == '') { |
+ document.title = 'success'; |
+ } else { |
+ console.log('Test failed:'); |
+ console.log(results); |
+ document.title = 'failure'; |
+ } |
+ }); |
+} |
</script> |
</head> |
<body onload="populate()"> |