Changeset 154911 in webkit
- Timestamp:
- Aug 30, 2013 2:43:01 PM (11 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r154910 r154911 1 2013-08-30 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: inspector/storage-panel-dom-storage-update.html is flakey on the bots 4 https://bugs.webkit.org/show_bug.cgi?id=120544 5 6 Take 2, remove some more runAfterPendingDispatches which were somehow 7 causing WebKit 2 tests to fail. This requires us to be a bit more 8 careful when running the pending handlers as well. 9 10 Unreviewed test fix. 11 12 * inspector/storage-panel-dom-storage-update.html: 13 1 14 2013-08-30 Joseph Pecoraro <pecoraro@apple.com> 2 15 -
trunk/LayoutTests/inspector/storage-panel-dom-storage-update.html
r154907 r154911 43 43 InspectorTest.addSniffer(WebInspector.DOMStorageDispatcher.prototype, "domStorageItemsCleared", function() { 44 44 if (nextDOMStorageClearHandler) { 45 nextDOMStorageClearHandler();45 var handler = nextDOMStorageClearHandler; 46 46 nextDOMStorageClearHandler = null; 47 handler(); 47 48 } else 48 49 InspectorTest.addResult("ERROR: domStorageItemsCleared event without handler"); … … 52 53 InspectorTest.addSniffer(WebInspector.DOMStorageDispatcher.prototype, "domStorageItemAdded", function() { 53 54 if (nextDOMStorageAddHandler) { 54 nextDOMStorageAddHandler();55 var handler = nextDOMStorageAddHandler; 55 56 nextDOMStorageAddHandler = null; 57 handler(); 56 58 } else 57 59 InspectorTest.addResult("ERROR: domStorageItemAdded event without handler"); … … 61 63 InspectorTest.addSniffer(WebInspector.DOMStorageDispatcher.prototype, "domStorageItemRemoved", function() { 62 64 if (nextDOMStorageRemoveHandler) { 63 nextDOMStorageRemoveHandler();65 var handler = nextDOMStorageRemoveHandler; 64 66 nextDOMStorageRemoveHandler = null; 67 handler(); 65 68 } else 66 69 InspectorTest.addResult("ERROR: domStorageItemRemoved event without handler"); 67 70 }, true); 68 69 71 70 72 InspectorTest.runTestSuite([ … … 91 93 } 92 94 95 var didFindStorage = false; 96 93 97 var storages = WebInspector.domStorageModel.storages(); 94 98 for (var i = 0; i < storages.length; ++i) { … … 97 101 WebInspector.panels.resources._showDOMStorage(storage); 98 102 InspectorTest.runAfterPendingDispatches(localStorageViewUpdated); 103 didFindStorage = true; 99 104 break; 100 105 } 101 106 } 107 108 if (!didFindStorage) 109 InspectorTest.addResult("did not find local storage"); 102 110 }, 103 111 … … 106 114 function viewUpdatedAfterAddition() 107 115 { 108 InspectorTest.runAfterPendingDispatches(function() { 109 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 110 dumpDataGrid(); 111 if (count < 6) 112 addItemTest(next); 113 else 114 next(); 115 }); 116 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 117 dumpDataGrid(); 118 if (count < 6) 119 addItemTest(next); 120 else 121 next(); 116 122 } 117 123 … … 127 133 function viewUpdatedAfterRemoval() 128 134 { 129 InspectorTest.runAfterPendingDispatches(function() { 130 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 131 dumpDataGrid(); 132 if (count > 4) 133 removeItemTest(next); 134 else 135 next(); 136 }); 135 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 136 dumpDataGrid(); 137 if (count > 4) 138 removeItemTest(next); 139 else 140 next(); 137 141 } 138 142 … … 148 152 function viewUpdatedAfterClear() 149 153 { 150 InspectorTest.runAfterPendingDispatches(function() { 151 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 152 dumpDataGrid(); 153 next(); 154 }); 154 rootNode = WebInspector.panels.resources._domStorageViews.get(storage)._dataGrid.rootNode(); 155 dumpDataGrid(); 156 next(); 155 157 } 156 158
Note: See TracChangeset
for help on using the changeset viewer.