Index: chrome/test/data/webui/md_history/history_list_test.js |
diff --git a/chrome/test/data/webui/md_history/history_list_test.js b/chrome/test/data/webui/md_history/history_list_test.js |
index c2709836e5b31d054c693ea095db48e63afbd9df..39873325c4047b55d449a0c594826551a77183c7 100644 |
--- a/chrome/test/data/webui/md_history/history_list_test.js |
+++ b/chrome/test/data/webui/md_history/history_list_test.js |
@@ -479,61 +479,6 @@ suite('<history-list>', function() { |
}); |
}); |
- // Test is very flaky on all platforms, http://crbug.com/669227. |
- test.skip('focus and keyboard nav', function(done) { |
- app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS); |
- PolymerTest.flushTasks().then(function() { |
- var items = polymerSelectAll(element, 'history-item'); |
- |
- var focused = items[2].$.checkbox; |
- focused.focus(); |
- |
- // Wait for next render to ensure that focus handlers have been |
- // registered (see HistoryItemElement.attached). |
- Polymer.RenderStatus.afterNextRender(this, function() { |
- MockInteractions.pressAndReleaseKeyOn( |
- focused, 39, [], 'ArrowRight'); |
- focused = items[2].$.title; |
- assertEquals(focused, element.lastFocused_); |
- assertTrue(items[2].row_.isActive()); |
- assertFalse(items[3].row_.isActive()); |
- |
- MockInteractions.pressAndReleaseKeyOn(focused, 40, [], 'ArrowDown'); |
- focused = items[3].$.title; |
- assertEquals(focused, element.lastFocused_); |
- assertFalse(items[2].row_.isActive()); |
- assertTrue(items[3].row_.isActive()); |
- |
- MockInteractions.pressAndReleaseKeyOn( |
- focused, 39, [], 'ArrowRight'); |
- focused = items[3].$['menu-button']; |
- assertEquals(focused, element.lastFocused_); |
- assertFalse(items[2].row_.isActive()); |
- assertTrue(items[3].row_.isActive()); |
- |
- MockInteractions.pressAndReleaseKeyOn(focused, 38, [], 'ArrowUp'); |
- focused = items[2].$['menu-button']; |
- assertEquals(focused, element.lastFocused_); |
- assertTrue(items[2].row_.isActive()); |
- assertFalse(items[3].row_.isActive()); |
- |
- MockInteractions.pressAndReleaseKeyOn(focused, 37, [], 'ArrowLeft'); |
- focused = items[2].$$('#bookmark-star'); |
- assertEquals(focused, element.lastFocused_); |
- assertTrue(items[2].row_.isActive()); |
- assertFalse(items[3].row_.isActive()); |
- |
- MockInteractions.pressAndReleaseKeyOn(focused, 40, [], 'ArrowDown'); |
- focused = items[3].$.title; |
- assertEquals(focused, element.lastFocused_); |
- assertFalse(items[2].row_.isActive()); |
- assertTrue(items[3].row_.isActive()); |
- |
- done(); |
- }); |
- }); |
- }); |
- |
teardown(function() { |
registerMessageCallback('removeVisits', this, undefined); |
registerMessageCallback('queryHistory', this, function() {}); |