Fix spelling of existence.
authorL. David Baron <dbaron@dbaron.org>
Thu, 08 Apr 2010 20:58:17 -0700
changeset 40617 251549ee918afe41ddf8b763987ac75b9f91b8de
parent 40616 9a1116219c1046319fe275b0de1d8cda77467950
child 40618 0c2460ae7df7b4c57a5301b262992cbaf7bb52e9
push idunknown
push userunknown
push dateunknown
milestone1.9.3a5pre
Fix spelling of existence.
browser/fuel/test/browser_ApplicationPrefs.js
browser/fuel/test/browser_Extensions.js
toolkit/components/downloads/test/unit/test_removeDownloadsByTimeframe.js
--- a/browser/fuel/test/browser_ApplicationPrefs.js
+++ b/browser/fuel/test/browser_ApplicationPrefs.js
@@ -30,22 +30,22 @@ function test() {
   is(itemValue, "dummy2", "Check 'Application.prefs.get().value' for existing item");
 
   // test resetting a pref [since there is no default value, the pref should disappear]
   Application.prefs.get(testdata.dummy).reset();
   itemValue = Application.prefs.getValue(testdata.dummy, "default");
   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");
   is(val, "default", "Check non-existant string property for expected value");
 
   // test accessing an existing string property
   var val = Application.prefs.getValue(testdata.string, "default");
   is(val, "#EE0000", "Check existing string property for expected value");
@@ -62,17 +62,17 @@ function test() {
   // test resetting an existing string property
   Application.prefs.get(testdata.string).reset();
   var val = Application.prefs.getValue(testdata.string, "default");
   is(val, "#EE0000", "Reset existing string property");
 
   // 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);
   is(val, 0, "Check non-existant integer property for expected value");
 
   // test accessing an existing integer property
   var val = Application.prefs.getValue(testdata.integer, 0);
   is(val, 1, "Check existing integer property for expected value");
@@ -89,17 +89,17 @@ function test() {
   // test resetting an existing integer property
   Application.prefs.get(testdata.integer).reset();
   var val = Application.prefs.getValue(testdata.integer, 0);
   is(val, 1, "Reset existing integer property");
 
   // 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);
   ok(val, "Check non-existant boolean property for expected value");
 
   // test accessing an existing boolean property
   var val = Application.prefs.getValue(testdata.boolean, false);
   ok(val, "Check existing boolean property for expected value");
--- a/browser/fuel/test/browser_Extensions.js
+++ b/browser/fuel/test/browser_Extensions.js
@@ -9,23 +9,23 @@ var testdata = {
 };
 var gLastEvent = "";
 
 function test() {
   // test to see if the extensions object is available
   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");
   is(inspector.name, testdata.inspectorname, "Check 'Extension.name' for known extension");
   // The known version number changes too frequently to hardcode in
   ok(inspector.version, "Check 'Extension.version' for known extension");
   ok(inspector.firstRun, "Check 'Extension.firstRun' for known extension");
   ok(inspector.enabled, "Check 'Extension.enabled' for known extension");
@@ -93,17 +93,17 @@ function test() {
   is(itemValue, "dummy2", "Check 'Extension.prefs.get().value' for existing item");
 
   // test resetting a pref [since there is no default value, the pref should disappear]
   inspector.prefs.get(testdata.dummy).reset();
   var itemValue = inspector.prefs.getValue(testdata.dummy, "default");
   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);
   inspector.prefs.setValue("fuel.fuel-test", "change event");
 }
 
 function onGenericEvent(event) {
   gLastEvent = event.type;
--- a/toolkit/components/downloads/test/unit/test_removeDownloadsByTimeframe.js
+++ b/toolkit/components/downloads/test/unit/test_removeDownloadsByTimeframe.js
@@ -88,17 +88,17 @@ function add_download_to_db(aStartTimeIn
 /**
  * Checks to see the downloads with the specified id exist or not.
  *
  * @param aIDs
  *        The ids of the downloads to check.
  * @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(
     "SELECT * " +
     "FROM moz_downloads " +
     "WHERE id = :id"
   );
 
@@ -112,49 +112,49 @@ function check_existance(aIDs, aExpected
 
 ////////////////////////////////////////////////////////////////////////////////
 //// Test Functions
 
 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()
 {
   let ids = [];
   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()
 {
   let ids = [];
   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()
 {
   let observer = {
     notified: false,
     observe: function(aSubject, aTopic, aData)
     {