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

Unified Diff: Tools/GardeningServer/ui/test/ct-unexpected-failures-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 side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html b/Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html
deleted file mode 100644
index 7cbab63ace0afd6986e3da1416959320107e3769..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html
+++ /dev/null
@@ -1,94 +0,0 @@
-<!--
-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-unexpected-failures.html'>
-
-<link rel="import" href="../../model/ct-commit-list.html">
-<link rel="import" href="../../model/ct-failures.html">
-
-<script>
-(function () {
-
-var assert = chai.assert;
-
-describe('ct-unexpected-failures', function() {
- it('test showing partytime with no CTFailures', function(done) {
- var noFailures = document.createElement('ct-unexpected-failures');
- setTimeout(function() {
- assert.notOk(noFailures.shadowRoot.querySelector('ct-party-time'));
- done();
- });
- });
-
- it('test showing partytime with no failures for the selected tree', function(done) {
- var noFailuresForTree = document.createElement('ct-unexpected-failures');
- noFailuresForTree.failures = new CTFailures(new CTCommitList(undefined, []));
- noFailuresForTree.failures.failures = {
- othertree: [new CTStepFailure('step', 'reason', [])]
- };
- noFailuresForTree.tree = 'mocktree';
-
- setTimeout(function() {
- assert.ok(noFailuresForTree.shadowRoot.querySelector('ct-party-time'));
- done();
- });
- });
-
- it('test showing partytime with no failures in this tree\'s list', function(done) {
- var noFailuresByLength = document.createElement('ct-unexpected-failures');
- noFailuresByLength.failures = new CTFailures(new CTCommitList(undefined, []));
- noFailuresByLength.failures.failures = {
- mocktree: []
- };
- noFailuresByLength.tree = 'mocktree';
-
- setTimeout(function() {
- assert.ok(noFailuresByLength.shadowRoot.querySelector('ct-party-time'));
- done();
- });
- });
-
- it('test showing partytime with failures for this tree', function(done) {
- var hasFailures = document.createElement('ct-unexpected-failures');
- hasFailures.failures = new CTFailures(new CTCommitList(undefined, []));
- hasFailures.failures.failures = {
- mocktree: [new CTStepFailure('step', 'reason', [])]
- };
- hasFailures.tree = 'mocktree';
-
- setTimeout(function() {
- assert.notOk(hasFailures.shadowRoot.querySelector('ct-party-time'));
-
- done();
- });
- });
-
- it('test showing only chromium tree status when chromium', function(done) {
- var noFailures = document.createElement('ct-unexpected-failures');
- noFailures.tree = 'chromium';
-
- setTimeout(function() {
- assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').length, 1);
-
- done();
- });
- });
-
- it('test showing both chromium and blink tree status when blink', function(done) {
- var noFailures = document.createElement('ct-unexpected-failures');
- noFailures.tree = 'blink';
-
- setTimeout(function() {
- assert.equal(noFailures.shadowRoot.querySelectorAll('ct-tree-status').length, 2);
-
- done();
- });
- });
-
-});
-
-})();
-</script>
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-trooper-card-tests.html ('k') | Tools/GardeningServer/ui/test/ct-view-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698