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

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

Issue 345853005: Start a top-down rewrite of Garden-O-Matic in Polymer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove stray console.log Created 6 years, 6 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
Index: Tools/GardeningServer/ui/ct-commit-tests.html
diff --git a/Tools/GardeningServer/ui/ct-commit-tests.html b/Tools/GardeningServer/ui/ct-commit-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..885f77a18cea3513da4ccf0f7b1224ab9c32be27
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-commit-tests.html
@@ -0,0 +1,42 @@
+<!--
+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.html">
+
+<script>
+(function () {
+
+var kExampleCommitData = {
+ "revision": 2,
+ "title": "Fix one more layering violation caught by check-blink-deps",
+ "time": "2013-09-30T19:36:21Z",
+ "summary": "core/platform may not depend on core/ even for testing.",
+ "author": "eseidel@chromium.org",
+ "reviewer": "abarth@chromium.org, abarth",
+ "bugID": [12],
+ "revertedRevision": undefined
+}
+
+module("ct-commit");
+
+asyncTest("basic", 3, function() {
+ var grouper = document.createElement('ct-commit');
+
+ grouper.data = kExampleCommitData;
+
+ Platform.endOfMicrotask(function() {
+ var html = grouper.shadowRoot.innerHTML;
+
+ equal(html.indexOf('eseidel') != -1, true)
+ equal(html.indexOf('abarth') != -1, true)
+ equal(html.indexOf('may not depend on') != -1, true)
+
+ start();
+ });
+});
+
+})()
+</script>

Powered by Google App Engine
This is Rietveld 408576698