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

Unified Diff: chrome/test/data/webui/md_history/lazy_render_test.js

Issue 2336503002: Replace paper-checkbox with a paper-icon-button-light (Closed)
Patch Set: fix closure + slightly more descriptive method Created 4 years, 3 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/webui/md_history/history_list_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/lazy_render_test.js
diff --git a/chrome/test/data/webui/md_history/lazy_render_test.js b/chrome/test/data/webui/md_history/lazy_render_test.js
index 341394d5e0d898418b8e0f374be9a9b6fe3e22be..5ee55f13acb8de4d26540e59900c40b9dbb80d29 100644
--- a/chrome/test/data/webui/md_history/lazy_render_test.js
+++ b/chrome/test/data/webui/md_history/lazy_render_test.js
@@ -12,7 +12,8 @@ cr.define('md_history.lazy_render_test', function() {
'<template is="dom-bind" id="bind">' +
' <template is="history-lazy-render" id="lazy">' +
' <h1>' +
- ' <paper-checkbox checked="{{checked}}"></paper-checkbox>' +
+ ' <history-side-bar selected-page="{{selectedPage}}">' +
+ ' </history-side-bar>' +
' {{name}}' +
' </h1>' +
' </template>' +
@@ -46,16 +47,16 @@ cr.define('md_history.lazy_render_test', function() {
test('two-way binding works', function() {
var bind = document.getElementById('bind');
- bind.checked = true;
+ bind.selectedPage = 'totally real page';
var lazy = document.getElementById('lazy');
return lazy.get().then(function(inner) {
- var checkbox = document.querySelector('paper-checkbox');
- assertTrue(checkbox.checked);
- MockInteractions.tap(checkbox);
- assertFalse(checkbox.checked);
- assertFalse(bind.checked);
+ var sideBar = document.querySelector('history-side-bar');
+ assertEquals(bind.selectedPage, sideBar.selectedPage);
+
+ sideBar.selectedPage = 'different page';
+ assertEquals(bind.selectedPage, sideBar.selectedPage);
});
});
});
« no previous file with comments | « chrome/test/data/webui/md_history/history_list_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698