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

Unified Diff: Tools/GardeningServer/ui/test/ct-failure-card-button-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-failure-card-button-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html b/Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html
deleted file mode 100644
index 3930ede57ed4a49e989f8a3e80957a05c421479b..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html
+++ /dev/null
@@ -1,105 +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-failure-card-buttons.html">
-<link rel="import" href="../ct-step-failure-card.html">
-
-<link rel="import" href="../../model/ct-commit-list-mock.html">
-<link rel="import" href="../../model/ct-commit-log-mock.html">
-<link rel="import" href="../../model/ct-failure-group.html">
-
-<script>
-(function () {
-
-var assert = chai.assert;
-
-describe('ct-failure-card-buttons', function() {
- var group;
- var card;
- var failures;
-
- beforeEach(function(done) {
- card = document.createElement('ct-failure-card-buttons');
- var cl = new CTCommitListMock();
- group = new CTFailureGroup('blink', new CTStepFailureGroupData([
- new CTStepFailure('autobot', 'unknown', {someBuilder: {key: 'a'}}, {'blink':158547},
- {'blink':158544})], cl));
- card.group = group;
- setTimeout(done);
- });
-
- describe('failure card buttons', function() {
-
- it('examine should link to failure', function() {
- assert(card.shadowRoot.getElementById('examine').parentNode.href.endsWith(
- '/blink/failure/autobot%3A%3Aunknown'));
- });
-
- it('clicking link bug should show dialog', function(done) {
- card.shadowRoot.getElementById('link-bug').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- var dialog = card.shadowRoot.getElementById('bugDialog');
- assert.isTrue(dialog.opened);
- var bugField = card.shadowRoot.getElementById('bug');
- bugField.value = '999';
- card.shadowRoot.getElementById('dialogOk').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- assert.equal(group.bug, 'https://crbug.com/999');
- assert.equal(group.bugLabel, 'Bug 999');
- assert.equal(group._annotation.bug, 'https://crbug.com/999');
- done();
- });
- });
- });
-
- it('entering URLs should work for bugs', function(done) {
- card.shadowRoot.getElementById('link-bug').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- var dialog = card.shadowRoot.getElementById('bugDialog');
- assert.isTrue(dialog.opened);
- var bugField = card.shadowRoot.getElementById('bug');
- bugField.value = 'https://foo.com/?id=888';
- card.shadowRoot.getElementById('dialogOk').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- assert.equal(group.bug, 'https://foo.com/?id=888');
- assert.equal(group.bugLabel, 'Bug 888');
- assert.equal(group._annotation.bug, 'https://foo.com/?id=888');
- done();
- });
- });
- });
-
- it('file bug link should have the right URL', function(done) {
- card.shadowRoot.getElementById('link-bug').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- var dialog = card.shadowRoot.getElementById('bugDialog');
- assert.isTrue(dialog.opened);
- var fileBugLink = card.shadowRoot.getElementById('fileBugLink');
- assert.equal(fileBugLink.href, 'https://code.google.com/p/chromium/issues/entry?status=Available&labels=Pri-2,gardening-blink&summary=Build%20failure&comment=Build%20is%20broken:%0aautobot%20unknown%0Ahttp%3A%2F%2Ftest-results.appspot.com%2Fdashboards%2Fflakiness_dashboard.html%23tests%3Dunknown%26testType%3Dautobot%0A%0ARevision%20range%3A%0Ablink%20158544%20%3A%20158545%0A%0AFailing%20builders%3A%0AsomeBuilder%3A%20undefined%2Fbuilders%2FsomeBuilder%0A');
- done();
- });
- });
-
- it('remove bug link should work', function(done) {
- group.setBug(123);
- card.shadowRoot.getElementById('link-bug').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- var dialog = card.shadowRoot.getElementById('bugDialog');
- assert.isTrue(dialog.opened);
- card.shadowRoot.getElementById('dialogRemoveBug').dispatchEvent(new CustomEvent('tap'));
- setTimeout(function() {
- assert.isUndefined(group.bug);
- assert.isUndefined(group.bugLabel);
- done();
- });
- });
- });
- });
-
-});
-
-})()
-</script>

Powered by Google App Engine
This is Rietveld 408576698