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

Unified Diff: Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html

Issue 502293003: Allow filing a bug from the "Link Bug" dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix link click Created 6 years, 3 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/ct-failure-card-buttons.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-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
index 6cd8e05cdcd412c2fdb2d9b9194fb7e27945c9ad..ccecc3839cb568ff2f1172ad9688c60054e46107 100644
--- a/Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html
+++ b/Tools/GardeningServer/ui/test/ct-failure-card-button-tests.html
@@ -76,6 +76,17 @@ describe('ct-failure-card-buttons', function() {
});
});
+ 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'));
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card-buttons.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698