Chromium Code Reviews| 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..77bea954194ec4c84742a8c5500d7b653722d968 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('LayoutTests', function() { |
|
michaelpg
2016/06/16 00:49:40
you're allowed to use spaces here, it's just a des
Dan Beam
2016/06/16 01:07:24
yeah, I know. aight fine, spaces you get.
I thin
|
| + /** @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); |
| + }); |
| }); |