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

Unified Diff: Tools/GardeningServer/scripts/checkout_unittests.js

Issue 358173003: Remove rebaseline logic from GOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/scripts/checkout.js ('k') | Tools/GardeningServer/scripts/controllers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/scripts/checkout_unittests.js
diff --git a/Tools/GardeningServer/scripts/checkout_unittests.js b/Tools/GardeningServer/scripts/checkout_unittests.js
index b99d2de4cf94268ddfd715014b1414118bd012c7..e9b7e78ab692f72f1f97e1ecbfd73ddb6bc8a8a2 100644
--- a/Tools/GardeningServer/scripts/checkout_unittests.js
+++ b/Tools/GardeningServer/scripts/checkout_unittests.js
@@ -60,94 +60,4 @@ asyncTest("lastBlinkRollRevision", 0, function() {
});;
});
-asyncTest("rebaseline", 3, function() {
- var simulator = new NetworkSimulator();
-
- var requests = [];
- simulator.post = function(url, body)
- {
- requests.push([url, body]);
- return Promise.resolve();
- };
- simulator.ajax = function(options)
- {
- if (options.url.indexOf('/ping') == -1) {
- ok(false, 'Received non-ping ajax request: ' + options.url);
- return Promise.reject('Received non-ping ajax request: ' + options.url);
- }
- return Promise.resolve();
- };
-
- var kExpectedTestNameProgressStack = [
- 'fast/test.html',
- 'another/test.svg',
- 'another/test.svg', // This is the first one.
- ];
-
- simulator.runTest(function() {
- checkout.rebaseline([{
- 'builderName': 'WebKit Linux',
- 'testName': 'another/test.svg',
- 'failureTypeList': ['IMAGE'],
- }, {
- 'builderName': 'WebKit Mac10.6',
- 'testName': 'another/test.svg',
- 'failureTypeList': ['IMAGE', 'TEXT', 'IMAGE+TEXT'],
- }, {
- 'builderName': 'Webkit Win7',
- 'testName': 'fast/test.html',
- 'failureTypeList': ['IMAGE+TEXT'],
- }], function(failureInfo) {
- equals(failureInfo.testName, kExpectedTestNameProgressStack.pop());
- }, function() {
- ok(false, 'There are no debug bots in the list');
- }).catch().then(function() {
- ok(true);
- }, function() {
- ok(false, 'Checkout should be available.');
- });
- }).then(function() {
-
- deepEqual(requests, [
- ["/rebaselineall",
- JSON.stringify({
- "another/test.svg": {
- "WebKit Linux": ["png"],
- "WebKit Mac10.6": ["png","txt"]},
- "fast/test.html": {
- "Webkit Win7": ["txt","png"]
- }})]
- ]);
- start();
- });
-});
-
-asyncTest("rebaseline-debug-bot", 4, function() {
- var simulator = new NetworkSimulator();
- simulator.post = function(url, body)
- {
- return Promise.resolve();
- };
- simulator.ajax = function(options)
- {
- return Promise.resolve();
- };
-
- simulator.runTest(function() {
- checkout.rebaseline([{
- 'builderName': 'WebKit Linux (dbg)',
- 'testName': 'another/test.svg',
- 'failureTypeList': ['IMAGE'],
- }], function(failureInfo) {
- ok(true);
- }, function(failureInfo) {
- ok(true);
- }).then(function() {
- ok(true);
- }, function() {
- ok(false);
- });
- }).then(start);
-});
-
})();
« no previous file with comments | « Tools/GardeningServer/scripts/checkout.js ('k') | Tools/GardeningServer/scripts/controllers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698