| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 'testName': 'another/test.svg', | 90 'testName': 'another/test.svg', |
| 91 'failureTypeList': ['IMAGE'], | 91 'failureTypeList': ['IMAGE'], |
| 92 }, { | 92 }, { |
| 93 'builderName': 'WebKit Mac10.6', | 93 'builderName': 'WebKit Mac10.6', |
| 94 'testName': 'another/test.svg', | 94 'testName': 'another/test.svg', |
| 95 'failureTypeList': ['IMAGE', 'TEXT', 'IMAGE+TEXT'], | 95 'failureTypeList': ['IMAGE', 'TEXT', 'IMAGE+TEXT'], |
| 96 }, { | 96 }, { |
| 97 'builderName': 'Webkit Win7', | 97 'builderName': 'Webkit Win7', |
| 98 'testName': 'fast/test.html', | 98 'testName': 'fast/test.html', |
| 99 'failureTypeList': ['IMAGE+TEXT'], | 99 'failureTypeList': ['IMAGE+TEXT'], |
| 100 }], function() { | 100 }], function(failureInfo) { |
| 101 ok(true); | |
| 102 }, function(failureInfo) { | |
| 103 equals(failureInfo.testName, kExpectedTestNameProgressStack.pop()); | 101 equals(failureInfo.testName, kExpectedTestNameProgressStack.pop()); |
| 104 }, function() { | 102 }, function() { |
| 103 ok(false, 'There are no debug bots in the list'); |
| 104 }).catch().then(function() { |
| 105 ok(true); |
| 106 }, function() { |
| 105 ok(false, 'Checkout should be available.'); | 107 ok(false, 'Checkout should be available.'); |
| 106 }, function() { | |
| 107 ok(false, 'There are no debug bots in the list'); | |
| 108 }); | 108 }); |
| 109 }).then(function() { | 109 }).then(function() { |
| 110 | 110 |
| 111 deepEqual(requests, [ | 111 deepEqual(requests, [ |
| 112 ["/rebaselineall", | 112 ["/rebaselineall", |
| 113 JSON.stringify({ | 113 JSON.stringify({ |
| 114 "another/test.svg": { | 114 "another/test.svg": { |
| 115 "WebKit Linux": ["png"], | 115 "WebKit Linux": ["png"], |
| 116 "WebKit Mac10.6": ["png","txt"]}, | 116 "WebKit Mac10.6": ["png","txt"]}, |
| 117 "fast/test.html": { | 117 "fast/test.html": { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 131 simulator.ajax = function(options) | 131 simulator.ajax = function(options) |
| 132 { | 132 { |
| 133 return Promise.resolve(); | 133 return Promise.resolve(); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 simulator.runTest(function() { | 136 simulator.runTest(function() { |
| 137 checkout.rebaseline([{ | 137 checkout.rebaseline([{ |
| 138 'builderName': 'WebKit Linux (dbg)', | 138 'builderName': 'WebKit Linux (dbg)', |
| 139 'testName': 'another/test.svg', | 139 'testName': 'another/test.svg', |
| 140 'failureTypeList': ['IMAGE'], | 140 'failureTypeList': ['IMAGE'], |
| 141 }], function() { | 141 }], function(failureInfo) { |
| 142 ok(true); | |
| 143 }, function(failureInfo) { | |
| 144 ok(false); | 142 ok(false); |
| 145 }, function() { | |
| 146 ok(false, 'Checkout should be available.'); | |
| 147 }, function(failureInfo) { | 143 }, function(failureInfo) { |
| 148 ok(true); | 144 ok(true); |
| 145 }).then(function() { |
| 146 ok(true); |
| 147 }, function() { |
| 148 ok(false); |
| 149 }); | 149 }); |
| 150 }).then(start); | 150 }).then(start); |
| 151 }); | 151 }); |
| 152 | 152 |
| 153 })(); | 153 })(); |
| OLD | NEW |