mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
fix and re-enable page style menu tests
This commit is contained in:
parent
8c80506f1c
commit
16640d187b
@ -1,7 +1,5 @@
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
finish();
|
||||
return;
|
||||
|
||||
var tab = gBrowser.addTab();
|
||||
gBrowser.selectedTab = tab;
|
||||
@ -31,7 +29,7 @@ function checkPageStyleMenu() {
|
||||
" with rel=\"" + rel + "\"" +
|
||||
(media ? " and media=\"" + media + "\"" : "");
|
||||
|
||||
var item = items.filter(function (item) item.label == title);
|
||||
var item = items.filter(function (item) item.getAttribute("label") == title);
|
||||
var found = item.length == 1;
|
||||
var checked = found && (item[0].getAttribute("checked") == "true");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user