| 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
|
| deleted file mode 100644
|
| index 5ee55f13acb8de4d26540e59900c40b9dbb80d29..0000000000000000000000000000000000000000
|
| --- a/chrome/test/data/webui/md_history/lazy_render_test.js
|
| +++ /dev/null
|
| @@ -1,68 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -cr.define('md_history.lazy_render_test', function() {
|
| - function registerTests() {
|
| - suite('history-lazy-render', function() {
|
| -
|
| - setup(function() {
|
| - PolymerTest.clearBody();
|
| - var template =
|
| - '<template is="dom-bind" id="bind">' +
|
| - ' <template is="history-lazy-render" id="lazy">' +
|
| - ' <h1>' +
|
| - ' <history-side-bar selected-page="{{selectedPage}}">' +
|
| - ' </history-side-bar>' +
|
| - ' {{name}}' +
|
| - ' </h1>' +
|
| - ' </template>' +
|
| - '</template>';
|
| - document.body.innerHTML = template;
|
| - });
|
| -
|
| - test('stamps after get()', function() {
|
| - var lazy = document.getElementById('lazy');
|
| -
|
| - assertFalse(!!document.body.querySelector('h1'));
|
| - assertFalse(!!lazy.getIfExists());
|
| -
|
| - return lazy.get().then(function(inner) {
|
| - assertEquals('H1', inner.nodeName);
|
| - assertEquals(inner, document.body.querySelector('h1'));
|
| - });
|
| - });
|
| -
|
| - test('one-way binding works', function() {
|
| - var bind = document.getElementById('bind');
|
| - bind.name = 'Wings';
|
| - var lazy = document.getElementById('lazy');
|
| -
|
| - return lazy.get().then(function(inner) {
|
| - assertNotEquals(-1, inner.textContent.indexOf('Wings'));
|
| - bind.name = 'DC';
|
| - assertNotEquals(-1, inner.textContent.indexOf('DC'));
|
| - });
|
| - });
|
| -
|
| - test('two-way binding works', function() {
|
| - var bind = document.getElementById('bind');
|
| - bind.selectedPage = 'totally real page';
|
| -
|
| - var lazy = document.getElementById('lazy');
|
| -
|
| - return lazy.get().then(function(inner) {
|
| - var sideBar = document.querySelector('history-side-bar');
|
| - assertEquals(bind.selectedPage, sideBar.selectedPage);
|
| -
|
| - sideBar.selectedPage = 'different page';
|
| - assertEquals(bind.selectedPage, sideBar.selectedPage);
|
| - });
|
| - });
|
| - });
|
| - }
|
| -
|
| - return {
|
| - registerTests: registerTests,
|
| - }
|
| -});
|
|
|