fix and re-enable page style menu tests

This commit is contained in:
Dão Gottwald 2008-08-09 19:59:40 +02:00
parent 10ba4b83d3
commit 0277ed5944

View File

@ -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");