| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 suite('<history-list>', function() { | 5 suite('<history-list>', function() { |
| 6 var app; | 6 var app; |
| 7 var element; | 7 var element; |
| 8 var toolbar; | 8 var toolbar; |
| 9 var TEST_HISTORY_RESULTS; | 9 var TEST_HISTORY_RESULTS; |
| 10 var ADDITIONAL_RESULTS; | 10 var ADDITIONAL_RESULTS; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 490 |
| 491 registerMessageCallback('navigateToUrl', this, function(info) { | 491 registerMessageCallback('navigateToUrl', this, function(info) { |
| 492 assertEquals(fileURL, info[0]); | 492 assertEquals(fileURL, info[0]); |
| 493 done(); | 493 done(); |
| 494 }); | 494 }); |
| 495 | 495 |
| 496 MockInteractions.tap(items[0].$.title); | 496 MockInteractions.tap(items[0].$.title); |
| 497 }); | 497 }); |
| 498 }); | 498 }); |
| 499 | 499 |
| 500 test('focus and keyboard nav', function(done) { | 500 // Test is very flaky on all platforms, http://crbug.com/669227. |
| 501 test.skip('focus and keyboard nav', function(done) { |
| 501 app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS); | 502 app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS); |
| 502 PolymerTest.flushTasks().then(function() { | 503 PolymerTest.flushTasks().then(function() { |
| 503 var items = polymerSelectAll(element, 'history-item'); | 504 var items = polymerSelectAll(element, 'history-item'); |
| 504 | 505 |
| 505 var focused = items[2].$.checkbox; | 506 var focused = items[2].$.checkbox; |
| 506 focused.focus(); | 507 focused.focus(); |
| 507 | 508 |
| 508 // Wait for next render to ensure that focus handlers have been | 509 // Wait for next render to ensure that focus handlers have been |
| 509 // registered (see HistoryItemElement.attached). | 510 // registered (see HistoryItemElement.attached). |
| 510 Polymer.RenderStatus.afterNextRender(this, function() { | 511 Polymer.RenderStatus.afterNextRender(this, function() { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 }); | 552 }); |
| 552 }); | 553 }); |
| 553 | 554 |
| 554 teardown(function() { | 555 teardown(function() { |
| 555 registerMessageCallback('removeVisits', this, undefined); | 556 registerMessageCallback('removeVisits', this, undefined); |
| 556 registerMessageCallback('queryHistory', this, function() {}); | 557 registerMessageCallback('queryHistory', this, function() {}); |
| 557 registerMessageCallback('navigateToUrl', this, undefined); | 558 registerMessageCallback('navigateToUrl', this, undefined); |
| 558 app.set('queryState_.searchTerm', ''); | 559 app.set('queryState_.searchTerm', ''); |
| 559 }); | 560 }); |
| 560 }); | 561 }); |
| OLD | NEW |