Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: chrome/test/data/webui/md_history/history_card_test.js

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Address reviewer's comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698