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

Side by Side Diff: Tools/GardeningServer/model/test/ct-step-failure-tests.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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-step-failure.html">
8
9 <script>
10 (function () {
11
12 var assert = chai.assert;
13
14 describe('CTStepFailure', function() {
15 var tests = [
16 {
17 failure: new CTStepFailure('browser_tests', 'FooTest.Bar', {}, 123, 123),
18 expectedGroupName: 'FooTest',
19 expectedKey: 'browser_tests::FooTest.Bar',
20 },
21 {
22 failure: new CTStepFailure('webkit_tests', 'fast/text/foo.html', {}, 123, 123),
23 expectedGroupName: 'fast/text',
24 expectedKey: 'webkit_tests::fast/text/foo.html',
25 },
26 {
27 failure: new CTStepFailure('compile', undefined, {builder1: {}}, 123, 123) ,
28 expectedGroupName: undefined,
29 expectedKey: 'compile::builder1',
30 }
31 ];
32
33 it('group name', function() {
34 tests.forEach(function(test) {
35 assert.equal(test.failure.reasonGroupName(), test.expectedGroupName);
36 });
37 });
38
39 it('has key', function() {
40 tests.forEach(function(test) {
41 assert.propertyVal(test.failure, 'key', test.expectedKey);
42 });
43 });
44
45 it('no tree closers', function() {
46 var failure = new CTStepFailure('browser_tests', 'FooTest.Bar', {}, 123, 123 );
47 assert.notOk(failure.isTreeCloser());
48 });
49
50 it('tree closer', function() {
51 var failure = new CTStepFailure('browser_tests', 'FooTest.Bar', {'builder': {isTreeCloser: true}}, 123, 123);
52 assert.ok(failure.isTreeCloser());
53 });
54
55 });
56
57 })();
58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698