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

Side by Side Diff: Tools/GardeningServer/ui/ct-builder-tests.html

Issue 462453002: Sheriff-O-Matic: Transition more unit tests to mocha. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and fix Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <link rel="import" href="ct-builder.html">
8
9 <link rel="import" href="../model/ct-builder.html">
10
11 <script>
12 (function () {
13
14 module("ct-builder");
15
16 asyncTest("basic", 4, function() {
17 var builder = document.createElement('ct-builder');
18
19 var masterUrl = 'http://url/';
20 var builderName = 'WebKit Linux (dbg)';
21 var firstFailingBuild = '1234';
22 builder.builder = new CTBuilder(masterUrl,
23 builderName, firstFailingBuild);
24
25 builder.async(function() {
26 var html = builder.shadowRoot.innerHTML;
27
28 var a = builder.shadowRoot.querySelector('a');
29 ok(a);
30 equal(a.href.indexOf(masterUrl), 0);
31 notEqual(a.href.indexOf(encodeURIComponent(builderName)), -1);
32 notEqual(a.href.indexOf(firstFailingBuild), -1);
33
34 start();
35 });
36 });
37
38 })()
39 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-builder-grid-tests.html ('k') | Tools/GardeningServer/ui/ct-commit-list-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698