Fix spelling of existence.
This commit is contained in:
@@ -35,12 +35,12 @@ function test() {
|
||||
is(itemValue, "default", "Check 'Application.prefs.getValue' for reset pref");
|
||||
|
||||
// test to see if a non-existant property exists
|
||||
ok(!Application.prefs.has(testdata.dummy), "Check non-existant property for existance");
|
||||
ok(!Application.prefs.has(testdata.dummy), "Check non-existant property for existence");
|
||||
|
||||
// PREF: string browser.active_color == #EE0000
|
||||
|
||||
// test to see if an existing string property exists
|
||||
ok(Application.prefs.has(testdata.string), "Check existing string property for existance");
|
||||
ok(Application.prefs.has(testdata.string), "Check existing string property for existence");
|
||||
|
||||
// test accessing a non-existant string property
|
||||
var val = Application.prefs.getValue(testdata.dummy, "default");
|
||||
@@ -67,7 +67,7 @@ function test() {
|
||||
// PREF: integer permissions.default.image == 1
|
||||
|
||||
// test to see if an existing integer property exists
|
||||
ok(Application.prefs.has(testdata.integer), "Check existing integer property for existance");
|
||||
ok(Application.prefs.has(testdata.integer), "Check existing integer property for existence");
|
||||
|
||||
// test accessing a non-existant integer property
|
||||
var val = Application.prefs.getValue(testdata.dummy, 0);
|
||||
@@ -94,7 +94,7 @@ function test() {
|
||||
// PREF: boolean browser.blink_allowed == true
|
||||
|
||||
// test to see if an existing boolean property exists
|
||||
ok(Application.prefs.has(testdata.boolean), "Check existing boolean property for existance");
|
||||
ok(Application.prefs.has(testdata.boolean), "Check existing boolean property for existence");
|
||||
|
||||
// test accessing a non-existant boolean property
|
||||
var val = Application.prefs.getValue(testdata.dummy, true);
|
||||
|
||||
@@ -14,13 +14,13 @@ function test() {
|
||||
ok(Application.extensions, "Check for the 'Extensions' object");
|
||||
|
||||
// test to see if a non-existant extension exists
|
||||
ok(!Application.extensions.has(testdata.dummyid), "Check non-existant extension for existance");
|
||||
ok(!Application.extensions.has(testdata.dummyid), "Check non-existant extension for existence");
|
||||
|
||||
// BUG 420028: Must find a way to add a dummy extension for test suite
|
||||
return;
|
||||
|
||||
// test to see if an extension exists
|
||||
ok(Application.extensions.has(testdata.inspectorid), "Check extension for existance");
|
||||
ok(Application.extensions.has(testdata.inspectorid), "Check extension for existence");
|
||||
|
||||
var inspector = Application.extensions.get(testdata.inspectorid);
|
||||
is(inspector.id, testdata.inspectorid, "Check 'Extension.id' for known extension");
|
||||
@@ -98,7 +98,7 @@ function test() {
|
||||
is(itemValue, "default", "Check 'Extension.prefs.getValue' for reset pref");
|
||||
|
||||
// test to see if a non-existant property exists
|
||||
ok(!inspector.prefs.has(testdata.dummy), "Check non-existant property for existance");
|
||||
ok(!inspector.prefs.has(testdata.dummy), "Check non-existant property for existence");
|
||||
|
||||
waitForExplicitFinish();
|
||||
inspector.prefs.events.addListener("change", onPrefChange);
|
||||
|
||||
@@ -93,7 +93,7 @@ function add_download_to_db(aStartTimeInRange, aEndTimeInRange, aState)
|
||||
* @param aExpected
|
||||
* True if we expect the download to exist, false if we do not.
|
||||
*/
|
||||
function check_existance(aIDs, aExpected)
|
||||
function check_existence(aIDs, aExpected)
|
||||
{
|
||||
let db = dm.DBConnection;
|
||||
let stmt = db.createStatement(
|
||||
@@ -117,14 +117,14 @@ function test_download_start_in_range()
|
||||
{
|
||||
let id = add_download_to_db(true, false, DOWNLOAD_FINISHED);
|
||||
dm.removeDownloadsByTimeframe(START_TIME, END_TIME);
|
||||
check_existance([id], false);
|
||||
check_existence([id], false);
|
||||
}
|
||||
|
||||
function test_download_end_in_range()
|
||||
{
|
||||
let id = add_download_to_db(false, true, DOWNLOAD_FINISHED);
|
||||
dm.removeDownloadsByTimeframe(START_TIME, END_TIME);
|
||||
check_existance([id], true);
|
||||
check_existence([id], true);
|
||||
}
|
||||
|
||||
function test_multiple_downloads_in_range()
|
||||
@@ -133,7 +133,7 @@ function test_multiple_downloads_in_range()
|
||||
ids.push(add_download_to_db(true, false, DOWNLOAD_FINISHED));
|
||||
ids.push(add_download_to_db(true, false, DOWNLOAD_FINISHED));
|
||||
dm.removeDownloadsByTimeframe(START_TIME, END_TIME);
|
||||
check_existance(ids, false);
|
||||
check_existence(ids, false);
|
||||
}
|
||||
|
||||
function test_no_downloads_in_range()
|
||||
@@ -142,14 +142,14 @@ function test_no_downloads_in_range()
|
||||
ids.push(add_download_to_db(false, true, DOWNLOAD_FINISHED));
|
||||
ids.push(add_download_to_db(false, true, DOWNLOAD_FINISHED));
|
||||
dm.removeDownloadsByTimeframe(START_TIME, END_TIME);
|
||||
check_existance(ids, true);
|
||||
check_existence(ids, true);
|
||||
}
|
||||
|
||||
function test_active_download_in_range()
|
||||
{
|
||||
let id = add_download_to_db(true, false, DOWNLOAD_DOWNLOADING);
|
||||
dm.removeDownloadsByTimeframe(START_TIME, END_TIME);
|
||||
check_existance([id], true);
|
||||
check_existence([id], true);
|
||||
}
|
||||
|
||||
function test_observer_dispatched()
|
||||
|
||||
Reference in New Issue
Block a user