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

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

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: closure Created 4 years, 10 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
Index: chrome/test/data/webui/md_history/history_supervised_user_test.js
diff --git a/chrome/test/data/webui/md_history/history_supervised_user_test.js b/chrome/test/data/webui/md_history/history_supervised_user_test.js
index fe05875e09b993d25c13db38e94dcc9e5951cea8..e0465fecc50a7846a1488ba58747eafcbb33056d 100644
--- a/chrome/test/data/webui/md_history/history_supervised_user_test.js
+++ b/chrome/test/data/webui/md_history/history_supervised_user_test.js
@@ -12,42 +12,44 @@ cr.define('md_history.history_supervised_user_test', function() {
];
function registerTests() {
- suite('history-card-manager supervised-user', function() {
+ suite('history-list supervised-user', function() {
var element;
suiteSetup(function() {
- element = $('history-card-manager');
+ element = $('history-list');
});
- test('checkboxes disabled for supervised user', function(done) {
+ setup(function() {
element.addNewResults(TEST_HISTORY_RESULTS);
+ });
+
+ test('checkboxes disabled for supervised user', function(done) {
var toolbar = $('toolbar');
flush(function() {
- var card = Polymer.dom(element.root).querySelectorAll('history-card');
- var item = Polymer.dom(card[0].root).querySelectorAll('history-item');
+ var items =
+ Polymer.dom(element.root).querySelectorAll('history-item');
- MockInteractions.tap(item[0].$['checkbox']);
+ MockInteractions.tap(items[0].$['checkbox']);
- assertFalse(item[0].selected);
+ assertFalse(items[0].selected);
done();
});
});
test('deletion disabled for supervised user', function() {
- element.addNewResults(TEST_HISTORY_RESULTS);
// Make sure that removeVisits is not being called.
registerMessageCallback('removeVisits', this, function (toBeRemoved) {
assertTrue(false);
});
- element.historyDataByDay_[0].historyItems[0].selected = true;
+ element.historyData[0].selected = true;
$('toolbar').onDeleteTap_();
});
teardown(function() {
- element.historyDataByDay_ = [];
+ element.historyData = [];
});
});
}

Powered by Google App Engine
This is Rietveld 408576698