| 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);
|
| -});
|
| -
|
| })();
|
|
|