| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.define('md_history.history_card_test', function() { | |
| 6 function registerTests() { | |
| 7 suite('history-card', function() { | |
| 8 test('basic separator insertion', function(done) { | |
| 9 var element = document.createElement('history-card'); | |
| 10 element.historyItems = [ | |
| 11 {"time": "1000000000"}, | |
| 12 {"time": "10000000"}, | |
| 13 {"time": "900000"} | |
| 14 ]; | |
| 15 flush(function() { | |
| 16 // Check that the correct number of time gaps are inserted. | |
| 17 var spacers = | |
| 18 Polymer.dom(element.root).querySelectorAll('#time-gap-separator'); | |
| 19 assertEquals(2, spacers.length); | |
| 20 done(); | |
| 21 }); | |
| 22 }); | |
| 23 }); | |
| 24 } | |
| 25 return { | |
| 26 registerTests: registerTests | |
| 27 }; | |
| 28 }); | |
| OLD | NEW |