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

Unified Diff: chrome/test/data/webui/media_router/media_router_container_tests.js

Issue 1554663002: [Media Router] First Run Flow WebUI and strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/test/data/webui/media_router/media_router_container_tests.js
diff --git a/chrome/test/data/webui/media_router/media_router_container_tests.js b/chrome/test/data/webui/media_router/media_router_container_tests.js
index 88571b6a2a460b74a5951d03cab00c0907679b57..61693d9d52a0b3ca66bce69168fad72b9d008235 100644
--- a/chrome/test/data/webui/media_router/media_router_container_tests.js
+++ b/chrome/test/data/webui/media_router/media_router_container_tests.js
@@ -162,6 +162,16 @@ cr.define('media_router_container', function() {
setTimeout(done);
});
+ // Tests for 'acknowledge-first-run-flow' event firing when the
+ // 'first-run-button' button is clicked.
+ test('first run button click', function(done) {
+ container.showFirstRunFlow_ = true;
+ container.addEventListener('acknowledge-first-run-flow', function() {
imcheng 2015/12/30 18:48:59 You can just pass in 'done' as the 2nd arg.
apacible 2015/12/31 00:38:03 Passing the function directly in as an arg invokes
+ done();
+ });
+ MockInteractions.tap(container.$['first-run-button']);
+ });
+
// Tests for 'create-route' event firing when a sink with no associated
// route is clicked.
test('select sink without a route', function(done) {

Powered by Google App Engine
This is Rietveld 408576698