| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 (function () { | 26 (function () { |
| 27 | 27 |
| 28 module("ui"); | 28 module("ui"); |
| 29 | 29 |
| 30 var flakinessBaseUrl = 'http://test-results.appspot.com/dashboards/flakiness_das
hboard.html#'; | 30 var flakinessBaseUrl = 'http://test-results.appspot.com/dashboards/flakiness_das
hboard.html#'; |
| 31 | 31 |
| 32 test('urlForFlakinessDashboard', 4, function() { | 32 test('urlForFlakinessDashboard', 5, function() { |
| 33 equal(ui.urlForFlakinessDashboard('foo', 'bar'), | 33 equal(ui.urlForFlakinessDashboard('foo', 'bar', 'blink'), |
| 34 flakinessBaseUrl + 'tests=foo&testType=bar'); | 34 flakinessBaseUrl + 'group=@ToT%20Blink&tests=foo&testType=bar'); |
| 35 equal(ui.urlForFlakinessDashboard(['foo', 'baz'], 'bar'), | 35 equal(ui.urlForFlakinessDashboard('foo', 'bar', 'chromium'), |
| 36 flakinessBaseUrl + 'tests=foo%2Cbaz&testType=bar'); | 36 flakinessBaseUrl + 'group=@ToT%20Chromium&tests=foo&testType=bar'); |
| 37 equal(ui.urlForFlakinessDashboard('foo', 'webkit_tests'), | 37 equal(ui.urlForFlakinessDashboard(['foo', 'baz'], 'bar', 'blink'), |
| 38 flakinessBaseUrl + 'tests=foo&testType=layout-tests'); | 38 flakinessBaseUrl + 'group=@ToT%20Blink&tests=foo%2Cbaz&testType=bar'); |
| 39 equal(ui.urlForFlakinessDashboard('foo', 'layout-tests'), | 39 equal(ui.urlForFlakinessDashboard('foo', 'webkit_tests', 'blink'), |
| 40 flakinessBaseUrl + 'tests=foo&testType=layout-tests'); | 40 flakinessBaseUrl + 'group=@ToT%20Blink&tests=foo&testType=layout-tests')
; |
| 41 equal(ui.urlForFlakinessDashboard('foo', 'layout-tests', 'blink'), |
| 42 flakinessBaseUrl + 'group=@ToT%20Blink&tests=foo&testType=layout-tests')
; |
| 41 }); | 43 }); |
| 42 | 44 |
| 43 test('urlForEmbeddedFlakinessDashboard', 1, function() { | 45 test('urlForEmbeddedFlakinessDashboard', 1, function() { |
| 44 equal(ui.urlForEmbeddedFlakinessDashboard('foo', 'bar'), | 46 equal(ui.urlForEmbeddedFlakinessDashboard('foo', 'bar', 'blink'), |
| 45 flakinessBaseUrl + 'tests=foo&testType=bar&showChrome=false'); | 47 flakinessBaseUrl + 'group=@ToT%20Blink&tests=foo&testType=bar&showChrome
=false'); |
| 46 }); | 48 }); |
| 47 | 49 |
| 48 })(); | 50 })(); |
| OLD | NEW |