Changeset 92396 in webkit
- Timestamp:
- Aug 4, 2011 12:19:23 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout.js
r92355 r92396 30 30 var kWebKitTrunk = 'http://svn.webkit.org/repository/webkit/trunk/'; 31 31 32 function subversionURLAtRevision(subversionURL, revision)33 {34 return subversionURL + '?r=' + revision;35 }36 37 32 checkout.subversionURLForTest = function(testName) 38 33 { 39 34 return kWebKitTrunk + 'LayoutTests/' + testName; 40 35 } 41 42 checkout.existsAtRevision = function(subversionURL, revision, callback)43 {44 net.ajax({45 method: 'HEAD',46 url: subversionURLAtRevision(subversionURL, revision),47 success: function() {48 callback(true);49 },50 error: function() {51 callback(false);52 }53 });54 };55 36 56 37 checkout.updateExpectations = function(failureInfoList, callback) -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout_unittests.js
r92355 r92396 32 32 }); 33 33 34 test("updateExpectations", 4, function() { 35 var simulator = new NetworkSimulator(); 36 simulator.post = function(url, data, callback) 37 { 38 equals(url, '/updateexpectations'); 39 equals(data, '[{"builderName":"WebKit Linux","testName":"another/test.svg","failureTypeList":["IMAGE"]}]'); 40 simulator.scheduleCallback(callback); 41 }; 42 43 simulator.runTest(function() { 44 checkout.updateExpectations([{ 45 'builderName': 'WebKit Linux', 46 'testName': 'another/test.svg', 47 'failureTypeList': ['IMAGE'], 48 }], function() { 49 ok(true); 50 }); 51 }); 52 }); 53 54 test("optimizeBaselines", 3, function() { 55 var simulator = new NetworkSimulator(); 56 simulator.post = function(url, callback) 57 { 58 equals(url, '/optimizebaselines?test=another%2Ftest.svg'); 59 simulator.scheduleCallback(callback); 60 }; 61 62 simulator.runTest(function() { 63 checkout.optimizeBaselines('another/test.svg', function() { 64 ok(true); 65 }); 66 }); 67 }); 68 69 test("rebaseline", 3, function() { 70 var simulator = new NetworkSimulator(); 71 72 var requestedURLs = []; 73 simulator.post = function(url, callback) 74 { 75 requestedURLs.push(url); 76 simulator.scheduleCallback(callback); 77 }; 78 79 simulator.runTest(function() { 80 checkout.rebaseline([{ 81 'builderName': 'WebKit Linux', 82 'testName': 'another/test.svg', 83 'failureTypeList': ['IMAGE'], 84 }, { 85 'builderName': 'WebKit Mac10.6', 86 'testName': 'another/test.svg', 87 'failureTypeList': ['IMAGE+TEXT'], 88 }, { 89 'builderName': 'Webkit Vista', 90 'testName': 'fast/test.html', 91 'failureTypeList': ['TEXT'], 92 }], function() { 93 ok(true); 94 }); 95 }); 96 97 deepEqual(requestedURLs, [ 98 "/rebaseline?builder=WebKit+Linux&test=another%2Ftest.svg&extension=png", 99 "/rebaseline?builder=WebKit+Mac10.6&test=another%2Ftest.svg&extension=txt", 100 "/rebaseline?builder=WebKit+Mac10.6&test=another%2Ftest.svg&extension=png", 101 "/rebaseline?builder=Webkit+Vista&test=fast%2Ftest.html&extension=txt", 102 "/optimizebaselines?test=another%2Ftest.svg", 103 "/optimizebaselines?test=fast%2Ftest.html" 104 ]); 105 }); 106 34 107 })(); -
trunk/Tools/ChangeLog
r92391 r92396 1 2011-08-04 Adam Barth <abarth@webkit.org> 2 3 checkout_unittest.js should have better coverage of checkout.js 4 https://bugs.webkit.org/show_bug.cgi?id=65671 5 6 Reviewed by Dimitri Glazkov. 7 8 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout.js: 9 - Remove unused functions. 10 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout_unittests.js: 11 - Test remaining public functions in the checkout module. 12 1 13 2011-08-04 Dmitry Lomov <dslomov@google.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.