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

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

Issue 411763003: Set up mocha, chai and karma for sheriff-o-matic unit testing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm head/body tag 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/test/ct-builder-grid-tests.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/test/ct-builder-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-builder-tests.html b/Tools/GardeningServer/ui/test/ct-builder-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..6b1d4b76ad691e12d00c0a84303a8b58ff92330f
--- /dev/null
+++ b/Tools/GardeningServer/ui/test/ct-builder-tests.html
@@ -0,0 +1,47 @@
+<!--
+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-builder.html">
+
+<script>
+(function () {
+
+var assert = chai.assert;
+
+describe('ct-builder', function() {
+ var builder;
+
+ beforeEach(function(done) {
+ builder = document.createElement('ct-builder');
+ builder.builder = 'WebKit Linux (dbg)';
+ requestAnimationFrame(function() { done(); });
+ });
+
+ describe('default builder UI', function() {
+ it('should link to the builder', function() {
+ var a = builder.shadowRoot.querySelector('a');
+ assert.ok(a.href);
+ assert.include(a.href, 'WebKit+Linux+(dbg)');
+ });
+ });
+
+ describe('builder UI with steps', function() {
+ beforeEach(function(done) {
+ builder.steps = ['gclient_revert', 'compile', 'unittests'];
+ requestAnimationFrame(function() { done(); });
+ });
+
+ it('should link to builder and show steps', function() {
+ var a = builder.shadowRoot.querySelector('a');
+ assert.ok(a);
+ assert.include(a.href, 'WebKit+Linux+(dbg)');
+ assert.include(a.innerText, 'gclient_revert, compile, unittests');
+ });
+ });
+});
+
+})()
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-builder-grid-tests.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698