Chromium Code Reviews| 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) { |