зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1195135 - Test for storage "stores-cleared" event. r=mratcliffe
This commit is contained in:
Родитель
1930cc74df
Коммит
bcdee9349e
|
@ -197,5 +197,13 @@ add_task(function*() {
|
|||
|
||||
yield findVariableViewProperties([{name: "ss2", value: "changed=ss2"}]);
|
||||
|
||||
// Clearing items
|
||||
yield gWindow.clear();
|
||||
|
||||
yield gUI.once("store-objects-cleared");
|
||||
|
||||
is($$("#value .table-widget-cell").length, 0,
|
||||
"Table should be cleared");
|
||||
|
||||
yield finishTests();
|
||||
});
|
||||
|
|
|
@ -146,6 +146,7 @@ StorageUI.prototype = {
|
|||
if (response.hasOwnProperty(type) && response[type].indexOf(host) > -1) {
|
||||
this.table.clear();
|
||||
this.hideSidebar();
|
||||
this.emit("store-objects-cleared");
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче