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

Unified Diff: chrome/test/data/webui/md_downloads/layout_tests.js

Issue 1428833005: MD Downloads: track downloads in C++, dispatch discrete JS updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dpapad@ + asanka@ feedback + self-review Created 5 years, 1 month 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_downloads/layout_tests.js
diff --git a/chrome/test/data/webui/md_downloads/layout_tests.js b/chrome/test/data/webui/md_downloads/layout_tests.js
index 7c09cf6ffb0950f1a228c5b4cf105ef7a2934783..e319b582f1125d66a90e629d591ae99cc9a3e91c 100644
--- a/chrome/test/data/webui/md_downloads/layout_tests.js
+++ b/chrome/test/data/webui/md_downloads/layout_tests.js
@@ -12,13 +12,14 @@ cr.define('downloads.layout_tests', function() {
PolymerTest.clearBody();
manager = document.createElement('downloads-manager');
document.body.appendChild(manager);
+ assertEquals(manager, downloads.Manager.get());
});
test('long URLs ellide', function() {
- manager.updateAll_([{
+ downloads.Manager.insertItems(0, [{
file_name: 'file name',
state: downloads.States.COMPLETE,
- url: 'a'.repeat(10000),
+ url: 'a'.repeat(1000),
}]);
Polymer.dom.flush();

Powered by Google App Engine
This is Rietveld 408576698