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

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

Issue 2074483003: MD Downloads: hide ... (more options) menu on resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: michaelpg review Created 4 years, 6 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_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 e319b582f1125d66a90e629d591ae99cc9a3e91c..820a7f4e616aee74ec5241315b18beb1dd8328b0 100644
--- a/chrome/test/data/webui/md_downloads/layout_tests.js
+++ b/chrome/test/data/webui/md_downloads/layout_tests.js
@@ -2,35 +2,27 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-cr.define('downloads.layout_tests', function() {
- function registerTests() {
- suite('LayoutTests', function() {
- /** @type {!downloads.Manager} */
- var manager;
+suite('layout tests', function() {
+ /** @type {!downloads.Manager} */
+ var manager;
- setup(function() {
- PolymerTest.clearBody();
- manager = document.createElement('downloads-manager');
- document.body.appendChild(manager);
- assertEquals(manager, downloads.Manager.get());
- });
+ setup(function() {
+ PolymerTest.clearBody();
+ manager = document.createElement('downloads-manager');
+ document.body.appendChild(manager);
+ assertEquals(manager, downloads.Manager.get());
+ });
- test('long URLs ellide', function() {
- downloads.Manager.insertItems(0, [{
- file_name: 'file name',
- state: downloads.States.COMPLETE,
- url: 'a'.repeat(1000),
- }]);
+ test('long URLs ellide', function() {
+ downloads.Manager.insertItems(0, [{
+ file_name: 'file name',
+ state: downloads.States.COMPLETE,
+ url: 'a'.repeat(1000),
+ }]);
- Polymer.dom.flush();
+ Polymer.dom.flush();
- var item = manager.$$('downloads-item');
- assertLT(item.$$('#url').offsetWidth, item.offsetWidth);
- });
- });
- }
-
- return {
- registerTests: registerTests,
- };
+ var item = manager.$$('downloads-item');
+ assertLT(item.$$('#url').offsetWidth, item.offsetWidth);
+ });
});
« no previous file with comments | « chrome/test/data/webui/md_downloads/downloads_browsertest.js ('k') | chrome/test/data/webui/md_downloads/toolbar_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698