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

Unified Diff: Tools/GardeningServer/ui/ct-commit-list-tests.html

Issue 404463003: Move commit list and builder latest revisions up to ct-unexpected-failures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/ui/ct-commit-list.html ('k') | Tools/GardeningServer/ui/ct-commit-tests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-commit-list-tests.html
diff --git a/Tools/GardeningServer/ui/ct-commit-list-tests.html b/Tools/GardeningServer/ui/ct-commit-list-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..ef974a560e59c7d0d1ad0df618a91f41920aa2a7
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-commit-list-tests.html
@@ -0,0 +1,33 @@
+<!--
+Copyright 2014 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.
+-->
+
+<link rel="import" href="ct-commit-list.html">
+
+<link rel="import" href="../model/ct-commit-log-mock.html">
+
+<script>
+(function () {
+
+module("ct-commit-list");
+
+asyncTest("basic", 2, function() {
+ var list = document.createElement('ct-commit-list');
+
+ list.first = 158545;
+ list.last = 158547;
+ list.commits = new CTCommitLogMock();
+
+ Platform.endOfMicrotask(function() {
+ var commits = list.shadowRoot.querySelectorAll('ct-commit');
+ equal(commits.length, 1);
+ deepEqual(list._revisions, [158545, 158546, 158547])
+
+ start();
+ });
+});
+
+})()
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-commit-list.html ('k') | Tools/GardeningServer/ui/ct-commit-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698