Skip to content

Commit

Permalink
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed May 23, 2010
1 parent 0497938 commit d9131e8
Show file tree
Hide file tree
Showing 56 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4264,7 +4264,7 @@ var XULBrowserWindow = {
FullZoom.onLocationChange(gBrowser.currentURI, true);
var nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
var loadingDone = aStateFlags & nsIWebProgressListener.STATE_STOP;
// use a pseudo-object instead of a (potentially non-existing) channel for getting
// use a pseudo-object instead of a (potentially nonexistent) channel for getting
// a correct error message - and make sure that the UI is always either in
// loading (STATE_START) or done (STATE_STOP) mode
this.onStateChange(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var tests = [
},

{
desc: "JSON restore: nonexisting file should fail",
desc: "JSON restore: nonexistent file should fail",
currTopic: NSIOBSERVER_TOPIC_BEGIN,
finalTopic: NSIOBSERVER_TOPIC_FAILED,
data: NSIOBSERVER_DATA_JSON,
Expand Down Expand Up @@ -163,7 +163,7 @@ var tests = [
},

{
desc: "HTML restore: nonexisting file should fail",
desc: "HTML restore: nonexistent file should fail",
currTopic: NSIOBSERVER_TOPIC_BEGIN,
finalTopic: NSIOBSERVER_TOPIC_FAILED,
data: NSIOBSERVER_DATA_HTML,
Expand Down Expand Up @@ -217,7 +217,7 @@ var tests = [
},

{
desc: "HTML initial restore: nonexisting file should fail",
desc: "HTML initial restore: nonexistent file should fail",
currTopic: NSIOBSERVER_TOPIC_BEGIN,
finalTopic: NSIOBSERVER_TOPIC_FAILED,
data: NSIOBSERVER_DATA_HTML_INIT,
Expand Down Expand Up @@ -279,7 +279,7 @@ var tests = [
},

{
desc: "HTML restore into folder: nonexisting file should fail",
desc: "HTML restore into folder: nonexistent file should fail",
currTopic: NSIOBSERVER_TOPIC_BEGIN,
finalTopic: NSIOBSERVER_TOPIC_FAILED,
data: NSIOBSERVER_DATA_HTML,
Expand Down
6 changes: 3 additions & 3 deletions browser/fuel/test/browser_ApplicationPrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ var testdata = {
};

function test() {
// test getting non-existing values
// test getting nonexistent values
var itemValue = Application.prefs.getValue(testdata.missing, "default");
is(itemValue, "default", "Check 'Application.prefs.getValue' for non-existing item");
is(itemValue, "default", "Check 'Application.prefs.getValue' for nonexistent item");

is(Application.prefs.get(testdata.missing), null, "Check 'Application.prefs.get' for non-existing item");
is(Application.prefs.get(testdata.missing), null, "Check 'Application.prefs.get' for nonexistent item");

// test setting and getting a value
Application.prefs.setValue(testdata.dummy, "dummy");
Expand Down
6 changes: 3 additions & 3 deletions browser/fuel/test/browser_ApplicationStorage.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
function test() {
// test for existence of values
var hasItem = Application.storage.has("fuel-test-missing");
is(hasItem, false, "Check 'Application.storage.has' for non-existing item");
is(hasItem, false, "Check 'Application.storage.has' for nonexistent item");
Application.storage.set("fuel-test", "dummy");
hasItem = Application.storage.has("fuel-test");
is(hasItem, true, "Check 'Application.storage.has' for existing item");

// test getting non-existing and existing values
// test getting nonexistent and existing values
var itemValue = Application.storage.get("fuel-test-missing", "default");
is(itemValue, "default", "Check 'Application.storage.get' for non-existing item");
is(itemValue, "default", "Check 'Application.storage.get' for nonexistent item");
itemValue = Application.storage.get("fuel-test", "default");
is(itemValue, "dummy", "Check 'Application.storage.get' for existing item");

Expand Down
2 changes: 1 addition & 1 deletion config/outofdate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#Compares with: foo1.class foo2.class (if -d specified, checks in 'dir',
# otherwise assumes .class files in same directory as .java files)
#Returns: list of input arguments which are newer than corresponding class
#files (non-existent class files are considered to be real old :-)
#files (nonexistent class files are considered to be real old :-)
#

$found = 1;
Expand Down
2 changes: 1 addition & 1 deletion config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ normalizepath = $(foreach p,$(1),$(shell cygpath -m $(p)))
else
# assume MSYS
# We use 'pwd -W' to get DOS form of the path. However, since the given path
# could be a file or a non-existent path, we cannot call 'pwd -W' directly
# could be a file or a nonexistent path, we cannot call 'pwd -W' directly
# on the path. Instead, we extract the root path (i.e. "c:/"), call 'pwd -W'
# on it, then merge with the rest of the path.
root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\1|")
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -6276,7 +6276,7 @@ dnl Remove dupes
MOZ_EXTENSIONS=`${PERL} ${srcdir}/build/unix/uniq.pl ${MOZ_EXTENSIONS}`

dnl Ensure every extension exists, to avoid mostly-inscrutable error messages
dnl when trying to build a non-existent extension.
dnl when trying to build a nonexistent extension.
for extension in $MOZ_EXTENSIONS; do
if test ! -d "${srcdir}/extensions/${extension}"; then
AC_MSG_ERROR([Unrecognized extension provided to --enable-extensions: ${extension}.])
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsImageLoadingContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ nsImageLoadingContent::RemoveObserver(imgIDecoderObserver* aObserver)
}
#ifdef DEBUG
else {
NS_WARNING("Asked to remove non-existent observer");
NS_WARNING("Asked to remove nonexistent observer");
}
#endif
return NS_OK;
Expand Down
4 changes: 2 additions & 2 deletions content/base/test/file_bug416317.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
t( "ID Selector w/ Element", "body#body", ["body"], false );
t( "ID Selector w/ Element", "ul#first", [] );
t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );
t( "ID selector with non-existent descendant", "#firstp #foobar", [] );
t( "ID selector with nonexistent descendant", "#firstp #foobar", [] );

t( "ID selector using UTF8", "#台北Táiběi", ["台北Táiběi"] );
t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] );
Expand All @@ -686,7 +686,7 @@
t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] );
t( "All Children of ID with no children", "#firstUL > *", [] );

t( "ID selector with non-existent ancestor", "#asdfasdf #foobar", [] ); // bug #986
t( "ID selector with nonexistent ancestor", "#asdfasdf #foobar", [] ); // bug #986

//t( "body div#form", [], "ID selector within the context of another element" );

Expand Down
2 changes: 1 addition & 1 deletion content/base/test/test_bug390219.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

SimpleTest.waitForExplicitFinish();
xhr = new XMLHttpRequest();
xhr.open("GET", "non-existing_url", true);
xhr.open("GET", "nonexistent_url", true);
xhr.send(null);
xhr.abort();
xhr.open("GET", ".", true);
Expand Down
2 changes: 1 addition & 1 deletion content/base/test/test_classList.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
" " + contextMsg);

var expectedAfter = after;
// XUL returns an empty string when getting a non-existing class attribute.
// XUL returns an empty string when getting a nonexistent class attribute.
if (e.namespaceURI == XUL_NS && expectedAfter === null)
expectedAfter = "";

Expand Down
4 changes: 2 additions & 2 deletions content/base/test/test_fileapi.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
expectedTestCount++;


// Test reading from non-existing files
// Test reading from nonexistent files
r = new FileReader();
var didThrow = false;
try {
Expand All @@ -264,7 +264,7 @@
}
// Once this test passes, we shoud test that onerror gets called and
// that the FileReader object is in the right state during that call.
todo(!didThrow, "shouldn't throw when opening non-existing file, should fire error instead");
todo(!didThrow, "shouldn't throw when opening nonexistent file, should fire error instead");


function getLoadHandler(expectedResult, expectedLength, testName) {
Expand Down
4 changes: 2 additions & 2 deletions content/html/document/src/nsHTMLContentSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ HTMLContentSink::BeginContext(PRInt32 aPosition)
}

if (!mCurrentContext) {
NS_ERROR("Non-existing context");
NS_ERROR("Nonexistent context");

return NS_ERROR_FAILURE;
}
Expand Down Expand Up @@ -1804,7 +1804,7 @@ HTMLContentSink::BeginContext(PRInt32 aPosition)
NS_IMETHODIMP
HTMLContentSink::EndContext(PRInt32 aPosition)
{
NS_PRECONDITION(mCurrentContext && aPosition > -1, "non-existing context");
NS_PRECONDITION(mCurrentContext && aPosition > -1, "nonexistent context");

PRUint32 n = mContextStack.Length() - 1;
SinkContext* sc = mContextStack.ElementAt(n);
Expand Down
2 changes: 1 addition & 1 deletion content/html/document/src/nsHTMLDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ nsHTMLDocument::Close()
// document.open() and document.close() have completed, then this
// method should cause the firing of an onload event.
NS_ASSERTION(mWyciwygChannel, "nsHTMLDocument::Close(): Trying to remove "
"non-existent wyciwyg channel!");
"nonexistent wyciwyg channel!");
RemoveWyciwygChannel();
NS_ASSERTION(!mWyciwygChannel, "nsHTMLDocument::Close(): "
"nsIWyciwygChannel could not be removed!");
Expand Down
2 changes: 1 addition & 1 deletion docshell/resources/content/netError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
location.reload();
} catch (e) {
// We probably tried to reload a URI that caused an exception to
// occur; e.g. a non-existent file.
// occur; e.g. a nonexistent file.
}

buttonEl.disabled = true;
Expand Down
2 changes: 1 addition & 1 deletion docshell/test/test_bug529119-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SimpleTest.waitForExplicitFinish();

var workingURL = "http://mochi.test:8888/tests/docshell/test/bug529119-window.html";
var faultyURL = "http://some-non-existent-domain-27489274c892748217cn2384.com/";
var faultyURL = "http://some-nonexistent-domain-27489274c892748217cn2384.com/";

var w = null;
var phase = 0;
Expand Down
2 changes: 1 addition & 1 deletion docshell/test/test_bug529119-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SimpleTest.waitForExplicitFinish();

var workingURL = "http://mochi.test:8888/tests/docshell/test/bug529119-window.html";
var faultyURL = "http://some-non-existent-domain-27489274c892748217cn2384.com/";
var faultyURL = "http://some-nonexistent-domain-27489274c892748217cn2384.com/";

var w = null;
var phase = 0;
Expand Down
2 changes: 1 addition & 1 deletion dom/src/storage/nsDOMStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ nsDOMStorage::SetSecure(const nsAString& aKey, PRBool aSecure)
#endif

nsSessionStorageEntry *entry = mItems.GetEntry(aKey);
NS_ASSERTION(entry, "Don't use SetSecure() with non-existing keys!");
NS_ASSERTION(entry, "Don't use SetSecure() with nonexistent keys!");

if (entry) {
entry->mItem->SetSecureInternal(aSecure);
Expand Down
2 changes: 1 addition & 1 deletion editor/libeditor/html/nsHTMLEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ class nsHTMLEditor : public nsPlaintextEditor,

nsresult CopyCellBackgroundColor(nsIDOMElement *destCell, nsIDOMElement *sourceCell);

// Reduce rowspan/colspan when cells span into non-existent rows/columns
// Reduce rowspan/colspan when cells span into nonexistent rows/columns
NS_IMETHOD FixBadRowSpan(nsIDOMElement *aTable, PRInt32 aRowIndex, PRInt32& aNewRowCount);
NS_IMETHOD FixBadColSpan(nsIDOMElement *aTable, PRInt32 aColIndex, PRInt32& aNewColCount);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ http://localhost:8080/

Note: the first time you hit the homepage it may take a little
while - that's because it's trying to read out median times for all
of the tests from a non-existent datastore and write to memcache.
of the tests from a nonexistent datastore and write to memcache.
Just be a lil patient.

You can run the unit tests at:
Expand Down
2 changes: 1 addition & 1 deletion js/src/config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ normalizepath = $(foreach p,$(1),$(shell cygpath -m $(p)))
else
# assume MSYS
# We use 'pwd -W' to get DOS form of the path. However, since the given path
# could be a file or a non-existent path, we cannot call 'pwd -W' directly
# could be a file or a nonexistent path, we cannot call 'pwd -W' directly
# on the path. Instead, we extract the root path (i.e. "c:/"), call 'pwd -W'
# on it, then merge with the rest of the path.
root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\1|")
Expand Down
2 changes: 1 addition & 1 deletion js/src/jsarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ array_concat(JSContext *cx, uintN argc, jsval *vp)
}

/*
* Per ECMA 262, 15.4.4.4, step 9, ignore non-existent
* Per ECMA 262, 15.4.4.4, step 9, ignore nonexistent
* properties.
*/
if (!hole &&
Expand Down
2 changes: 1 addition & 1 deletion js/src/jsgc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ JSGCChunkInfo::init(JSRuntime *rt)

/*
* For simplicity we set all bits to 1 including the high bits in the
* last word that corresponds to non-existing arenas. This is fine since
* last word that corresponds to nonexistent arenas. This is fine since
* the arena scans the bitmap words from lowest to highest bits and the
* allocation checks numFreeArenas before doing the search.
*/
Expand Down
2 changes: 1 addition & 1 deletion js/src/jsinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ js_CheckRedeclaration(JSContext *cx, JSObject *obj, jsid id, uintN attrs,
/*
* Both objp and propp must be either null or given. When given, *propp
* must be null. This way we avoid an extra "if (propp) *propp = NULL" for
* the common case of a non-existing property.
* the common case of a nonexistent property.
*/
JS_ASSERT(!objp == !propp);
JS_ASSERT_IF(propp, !*propp);
Expand Down
2 changes: 1 addition & 1 deletion js/src/jstracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12986,7 +12986,7 @@ TraceRecorder::prop(JSObject* obj, LIns* obj_ins, uint32 *slotp, LIns** v_insp,
PCVal pcval;
CHECK_STATUS_A(test_property_cache(obj, obj_ins, obj2, pcval));

/* Check for non-existent property reference, which results in undefined. */
/* Check for nonexistent property reference, which results in undefined. */
if (pcval.isNull()) {
if (slotp)
RETURN_STOP_A("property not found");
Expand Down
4 changes: 2 additions & 2 deletions js/src/tests/js1_5/Regress/regress-156354.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
/*
*
* Date: 16 September 2002
* SUMMARY: Testing propertyIsEnumerable() on non-existent property
* SUMMARY: Testing propertyIsEnumerable() on nonexistent property
* See http://bugzilla.mozilla.org/show_bug.cgi?id=156354
*
*/
//-----------------------------------------------------------------------------
var gTestfile = 'regress-156354.js';
var UBound = 0;
var BUGNUMBER = 156354;
var summary = 'Testing propertyIsEnumerable() on non-existent property';
var summary = 'Testing propertyIsEnumerable() on nonexistent property';
var status = '';
var statusitems = [];
var actual = '';
Expand Down
2 changes: 1 addition & 1 deletion js/src/tests/js1_5/extensions/getset-006.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ actual = [obj.__lookupSetter__(cnName), obj.__lookupGetter__(cnName)];
expect = [cnNameSetter, cnNameGetter];
addThis();

status = 'In SECTION3 of test; looking up non-existent getter/setter';
status = 'In SECTION3 of test; looking up nonexistent getter/setter';
actual = [obj.__lookupSetter__(cnColor), obj.__lookupGetter__(cnColor)];
expect = [undefined, undefined];
addThis();
Expand Down
2 changes: 1 addition & 1 deletion js/src/tests/js1_7/iterable/regress-341510.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var gTestfile = 'regress-341510.js';
//-----------------------------------------------------------------------------
var BUGNUMBER = 341510;
var summary = 'Iterators: crash in close handler with assignment to ' +
'non-existing name';
'nonexistent name';
var actual = 'No Crash';
var expect = 'No Crash';

Expand Down
4 changes: 2 additions & 2 deletions js/src/xpconnect/tests/mochitest/test_cows.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@

try {
if (strictCOW.foo)
ok(false, "non-existent property shouldn't be truthy.");
ok(false, "nonexistent property shouldn't be truthy.");
else
ok(true, "'duck-typing' detection on non-existent prop " +
ok(true, "'duck-typing' detection on nonexistent prop " +
"should work.");
} catch (e) {
todo(false,
Expand Down
2 changes: 1 addition & 1 deletion layout/generic/nsBlockFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class nsIntervalSet;
* frame property that points to an nsFrameList in its
* nsBlockReflowState. This list contains continuations for
* floats whose prev-in-flow is in the block's regular float
* list. The list is always empty/non-existent after the
* list. The list is always empty/nonexistent after the
* block has been reflowed.
* -- In all these frame lists, if there are two frames for
* the same content appearing in the list, then the frames
Expand Down
2 changes: 1 addition & 1 deletion layout/reftests/font-face/bug533251.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

div {
font-family: Bongo2020; /* non-existent font */
font-family: Bongo2020; /* nonexistent font */
color: white;
}

Expand Down
2 changes: 1 addition & 1 deletion layout/reftests/xul-document-load/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test006: Simple <?xml-stylesheet ?> instruction in the prolog has an effect and

test007: Same as #006 for xul-overlay PI.

test008: Handle stylesheet PIs pointing to non-existing resources gracefully.
test008: Handle stylesheet PIs pointing to nonexistent resources gracefully.

test009: Same as #008 for xul-overlay PIs

Expand Down
4 changes: 2 additions & 2 deletions netwerk/test/TestCacheBlockFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ main(void)


//----------------------------------------------------------------
// Test 1: Open non-existing file
// Test 1: Open nonexistent file
//----------------------------------------------------------------
rv = blockFile->Open(localFile, 256);
if (NS_FAILED(rv)) {
Expand Down Expand Up @@ -337,7 +337,7 @@ main(void)


//----------------------------------------------------------------
// Test 4: Open non-existing file (again)
// Test 4: Open nonexistent file (again)
//----------------------------------------------------------------

// Delete existing file
Expand Down
Loading

0 comments on commit d9131e8

Please sign in to comment.