Bug 608507 - some minor test cleanup. r=dtownsend, a=test fix

This commit is contained in:
Robert Strong 2010-11-01 14:30:07 -07:00
parent ed937ae331
commit 8cfb01a2d5
10 changed files with 16 additions and 16 deletions

View File

@ -387,14 +387,14 @@ add_test(function() {
];
open_compatibility_window(inactiveAddonIds, function(aWindow) {
var doc = aWindow.document;
wait_for_page(aWindow, "mismatch", function(aWindow) {
var items = get_list_names(doc.getElementById("mismatch.incompatible"));
is(items.length, 1, "Should have seen 1 still incompatible items");
is(items[0], "Addon3 1.0", "Should have seen addon3 still incompatible");
var doc = aWindow.document;
wait_for_page(aWindow, "mismatch", function(aWindow) {
var items = get_list_names(doc.getElementById("mismatch.incompatible"));
is(items.length, 1, "Should have seen 1 still incompatible items");
is(items[0], "Addon3 1.0", "Should have seen addon3 still incompatible");
var button = doc.documentElement.getButton("next");
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
var button = doc.documentElement.getButton("next");
EventUtils.synthesizeMouse(button, 2, 2, { }, aWindow);
wait_for_page(aWindow, "noupdates", function(aWindow) {
var button = doc.documentElement.getButton("finish");

View File

@ -30,7 +30,7 @@ function get_item(items, url) {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
let items = window.document.getElementById("itemList").childNodes;
is(items.length, 3, "Should be 3 items listed in the confirmation dialog");
let item = get_item(items, TESTROOT + "signed.xpi");
if (item) {

View File

@ -18,7 +18,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "Signed XPI Test", "Should have seen the name from the trigger list");
is(items[0].url, TESTROOT + "signed.xpi", "Should have listed the correct url for the item");

View File

@ -18,7 +18,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "Signed XPI Test", "Should have had the filename for the item name");
is(items[0].url, TESTROOT + "signed-untrusted.xpi", "Should have listed the correct url for the item");

View File

@ -11,7 +11,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
let items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "Signed XPI Test", "Should have had the name");
is(items[0].url, TESTROOT + "signed.xpi", "Should have listed the correct url for the item");

View File

@ -14,7 +14,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "XPI Test", "Should have seen the name");
is(items[0].url, TESTROOT + "unsigned.xpi", "Should have listed the correct url for the item");

View File

@ -22,7 +22,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "XPI Test", "Should have seen the name");
is(items[0].url, TESTROOT + "unsigned.xpi", "Should have listed the correct url for the item");

View File

@ -23,7 +23,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "XPI Test", "Should have seen the name");
is(items[0].url, TESTROOT + "unsigned.xpi", "Should have listed the correct url for the item");

View File

@ -11,7 +11,7 @@ function test() {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
let items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "XPI Test", "Should have had the filename for the item name");
is(items[0].url, TESTROOT + "unsigned.xpi", "Should have listed the correct url for the item");

View File

@ -23,7 +23,7 @@ function allow_blocked(installInfo) {
}
function confirm_install(window) {
items = window.document.getElementById("itemList").childNodes;
var items = window.document.getElementById("itemList").childNodes;
is(items.length, 1, "Should only be 1 item listed in the confirmation dialog");
is(items[0].name, "XPI Test", "Should have seen the name from the trigger list");
is(items[0].url, TESTROOT + "unsigned.xpi", "Should have listed the correct url for the item");