mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
--HG-- extra : rebase_source : 4f15f7fd6f90926b77d136be83af7f22c5ffa830
This commit is contained in:
parent
58619e4355
commit
5f19df86e0
@ -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(
|
||||
|
@ -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,
|
||||
@ -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,
|
||||
@ -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,
|
||||
@ -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,
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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|")
|
||||
|
@ -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}.])
|
||||
|
@ -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;
|
||||
|
@ -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","台北"] );
|
||||
@ -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" );
|
||||
|
||||
|
@ -21,7 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=390219
|
||||
|
||||
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);
|
||||
|
@ -69,7 +69,7 @@ function checkModification(e, funcName, argument, expectedRes, before, after) {
|
||||
" " + 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 = "";
|
||||
|
||||
|
@ -254,7 +254,7 @@ r.onload = getLoadHandler(testASCIIData, testASCIIData.length, "reuse-as-abort r
|
||||
expectedTestCount++;
|
||||
|
||||
|
||||
// Test reading from non-existing files
|
||||
// Test reading from nonexistent files
|
||||
r = new FileReader();
|
||||
var didThrow = false;
|
||||
try {
|
||||
@ -264,7 +264,7 @@ try {
|
||||
}
|
||||
// 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) {
|
||||
|
@ -1764,7 +1764,7 @@ HTMLContentSink::BeginContext(PRInt32 aPosition)
|
||||
}
|
||||
|
||||
if (!mCurrentContext) {
|
||||
NS_ERROR("Non-existing context");
|
||||
NS_ERROR("Nonexistent context");
|
||||
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@ -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);
|
||||
|
@ -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!");
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -506,7 +506,7 @@ protected:
|
||||
|
||||
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);
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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|")
|
||||
|
@ -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 &&
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -39,7 +39,7 @@
|
||||
/*
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
@ -47,7 +47,7 @@
|
||||
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 = '';
|
||||
|
@ -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();
|
||||
|
@ -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';
|
||||
|
||||
|
@ -79,9 +79,9 @@ function COWTests() {
|
||||
|
||||
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,
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,7 @@ body {
|
||||
}
|
||||
|
||||
div {
|
||||
font-family: Bongo2020; /* non-existent font */
|
||||
font-family: Bongo2020; /* nonexistent font */
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)) {
|
||||
@ -337,7 +337,7 @@ main(void)
|
||||
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// Test 4: Open non-existing file (again)
|
||||
// Test 4: Open nonexistent file (again)
|
||||
//----------------------------------------------------------------
|
||||
|
||||
// Delete existing file
|
||||
|
@ -109,14 +109,14 @@ TestMemoryObjectCache()
|
||||
|
||||
nsCOMPtr<nsICacheEntryDescriptor> descriptor;
|
||||
|
||||
// Test ACCESS_READ for non-existent entry
|
||||
// Test ACCESS_READ for nonexistent entry
|
||||
printf("\nTest ACCESS_READ:\n");
|
||||
rv = session->OpenCacheEntry(NS_LITERAL_CSTRING("non-existent entry"),
|
||||
rv = session->OpenCacheEntry(NS_LITERAL_CSTRING("nonexistent entry"),
|
||||
nsICache::ACCESS_READ,
|
||||
nsICache::BLOCKING,
|
||||
getter_AddRefs(descriptor));
|
||||
if (rv != NS_ERROR_CACHE_KEY_NOT_FOUND)
|
||||
printf("OpenCacheEntry(ACCESS_READ) returned: %x for non-existent entry\n", rv);
|
||||
printf("OpenCacheEntry(ACCESS_READ) returned: %x for nonexistent entry\n", rv);
|
||||
|
||||
NS_NAMED_LITERAL_CSTRING(cacheKey, "http://www.mozilla.org/somekey");
|
||||
|
||||
|
@ -597,7 +597,7 @@ nsHttpServer.prototype =
|
||||
(!directory.exists() || !directory.isDirectory())))
|
||||
throw Cr.NS_ERROR_INVALID_ARG;
|
||||
|
||||
// XXX determine behavior of non-existent /foo/bar when a /foo/bar/ mapping
|
||||
// XXX determine behavior of nonexistent /foo/bar when a /foo/bar/ mapping
|
||||
// exists!
|
||||
|
||||
this._handler.registerDirectory(path, directory);
|
||||
@ -3548,7 +3548,7 @@ Response.prototype =
|
||||
* the processor (when it first is clear that body data is to be written
|
||||
* immediately, not buffered). If this method is called first, accessing
|
||||
* bodyOutputStream will create the processor. If only this method is
|
||||
* called, we'll write nothing, neither headers nor the non-existent body,
|
||||
* called, we'll write nothing, neither headers nor the nonexistent body,
|
||||
* until finish() is called. Since that delay is easily avoided by simply
|
||||
* getting bodyOutputStream or calling write(""), we don't worry about it.
|
||||
*/
|
||||
|
@ -46,7 +46,7 @@ var tests =
|
||||
null, start_objHandler, null),
|
||||
new Test("http://localhost:4444/functionHandler",
|
||||
null, start_functionHandler, null),
|
||||
new Test("http://localhost:4444/non-existent-path",
|
||||
new Test("http://localhost:4444/nonexistent-path",
|
||||
null, start_non_existent_path, null),
|
||||
new Test("http://localhost:4444/lotsOfHeaders",
|
||||
null, start_lots_of_headers, null),
|
||||
|
@ -54,7 +54,7 @@ if (exists) {
|
||||
do_check_false(exists); // fail on purpose
|
||||
}
|
||||
|
||||
testdesc = "Initialize with a non-existent data file";
|
||||
testdesc = "Initialize with a nonexistent data file";
|
||||
|
||||
storage = LoginTest.initStorage(OUTDIR, filename);
|
||||
|
||||
|
@ -49,7 +49,7 @@ dummyuser3.init("http://dummyhost2.mozilla.org", "http://cgi.site.com", null,
|
||||
testnum++;
|
||||
|
||||
testdesc = "[ensuring file doesn't exist]";
|
||||
var filename="non-existent-file-"+Math.floor(Math.random() * 10000);
|
||||
var filename="nonexistent-file-"+Math.floor(Math.random() * 10000);
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
|
||||
file.initWithPath(OUTDIR);
|
||||
file.append(filename);
|
||||
|
@ -56,7 +56,7 @@ file.append(filename);
|
||||
if(file.exists())
|
||||
file.remove(false);
|
||||
|
||||
testdesc = "Initialize with a non-existent data file";
|
||||
testdesc = "Initialize with a nonexistent data file";
|
||||
|
||||
storage = LoginTest.reloadStorage(OUTDIR, filename);
|
||||
|
||||
@ -225,7 +225,7 @@ testdesc = "Initialize with signons-06.txt (1 disabled, 1 login); test modifyLog
|
||||
storage = LoginTest.initStorage(INDIR, "signons-06.txt", OUTDIR, "signons-06-3.sqlite");
|
||||
LoginTest.checkStorageData(storage, ["https://www.site.net"], [testuser1]);
|
||||
|
||||
// Try modifying a non-existent login
|
||||
// Try modifying a nonexistent login
|
||||
var err = null;
|
||||
try {
|
||||
storage.modifyLogin(testuser2, testuser1);
|
||||
|
@ -41,7 +41,7 @@ dummyuser3.init("http://dummyhost2.mozilla.org", "http://cgi.site.com", null,
|
||||
testnum++;
|
||||
|
||||
testdesc = "[ensuring file doesn't exist]";
|
||||
var filename="non-existent-file-pwmgr.sqlite";
|
||||
var filename="nonexistent-file-pwmgr.sqlite";
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
|
||||
file.initWithPath(OUTDIR);
|
||||
file.append(filename);
|
||||
|
@ -266,7 +266,7 @@ var gTests = [
|
||||
},
|
||||
|
||||
{
|
||||
desc: "Querying history on nonexisting tags should return no results",
|
||||
desc: "Querying history on nonexistent tags should return no results",
|
||||
run: function () {
|
||||
doWithVisit(["foo", "bar", "baz"], function (aURI) {
|
||||
var [query, opts] = makeQuery(["bogus"]);
|
||||
@ -350,7 +350,7 @@ var gTests = [
|
||||
},
|
||||
|
||||
{
|
||||
desc: "Querying bookmarks on nonexisting tag should return no results",
|
||||
desc: "Querying bookmarks on nonexistent tag should return no results",
|
||||
run: function () {
|
||||
doWithBookmark(["foo", "bar", "baz"], function (aURI) {
|
||||
var [query, opts] = makeQuery(["bogus"]);
|
||||
|
@ -72,7 +72,7 @@ function run_test() {
|
||||
add_uri_to_history(uri3);
|
||||
do_check_true(gh.isVisited(uri3));
|
||||
|
||||
// check if a non-existent uri is visited
|
||||
// check if a nonexistent uri is visited
|
||||
var uri4 = uri("http://foobarcheese.com");
|
||||
do_check_false(gh.isVisited(uri4));
|
||||
|
||||
|
@ -194,7 +194,7 @@ tests.push({
|
||||
stmt.params['anno'] = this._usedPageAttribute;
|
||||
stmt.execute();
|
||||
stmt.finalize();
|
||||
// Add an annotation with a nonexisting attribute
|
||||
// Add an annotation with a nonexistent attribute
|
||||
stmt = mDBConn.createStatement("INSERT INTO moz_annos (place_id, anno_attribute_id) VALUES(:place_id, 1337)");
|
||||
stmt.params['place_id'] = this._placeId;
|
||||
stmt.execute();
|
||||
@ -241,7 +241,7 @@ tests.push({
|
||||
stmt.params['anno'] = this._usedPageAttribute;
|
||||
stmt.execute();
|
||||
stmt.reset();
|
||||
// Add an annotation to a nonexisting page
|
||||
// Add an annotation to a nonexistent page
|
||||
stmt.params['place_id'] = 1337;
|
||||
stmt.params['anno'] = this._usedPageAttribute;
|
||||
stmt.execute();
|
||||
@ -259,7 +259,7 @@ tests.push({
|
||||
stmt.params['anno'] = this._usedPageAttribute;
|
||||
do_check_true(stmt.executeStep());
|
||||
stmt.finalize();
|
||||
// Check that an annotation to a nonexisting page has been removed
|
||||
// Check that an annotation to a nonexistent page has been removed
|
||||
stmt = mDBConn.createStatement("SELECT id FROM moz_annos WHERE place_id = 1337");
|
||||
do_check_false(stmt.executeStep());
|
||||
stmt.finalize();
|
||||
@ -526,7 +526,7 @@ tests.push({
|
||||
this._placeId = addPlace();
|
||||
// Add a bookmark using the keyword
|
||||
this._validKeywordItemId = addBookmark(this._placeId, bs.TYPE_BOOKMARK, bs.unfiledBookmarksFolder, this._validKeywordId);
|
||||
// Add a bookmark using a nonexisting keyword
|
||||
// Add a bookmark using a nonexistent keyword
|
||||
this._invalidKeywordItemId = addBookmark(this._placeId, bs.TYPE_BOOKMARK, bs.unfiledBookmarksFolder, this._invalidKeywordId);
|
||||
},
|
||||
|
||||
@ -893,7 +893,7 @@ tests.push({
|
||||
stmt.params['anno'] = this._usedItemAttribute;
|
||||
stmt.execute();
|
||||
stmt.finalize();
|
||||
// Add an annotation with a nonexisting attribute
|
||||
// Add an annotation with a nonexistent attribute
|
||||
stmt = mDBConn.createStatement("INSERT INTO moz_items_annos (item_id, anno_attribute_id) VALUES(:item_id, 1337)");
|
||||
stmt.params['item_id'] = this._bookmarkId;
|
||||
stmt.execute();
|
||||
@ -944,7 +944,7 @@ tests.push({
|
||||
stmt.params["anno"] = this._usedItemAttribute;
|
||||
stmt.execute();
|
||||
stmt.reset();
|
||||
// Add an annotation to a nonexisting item
|
||||
// Add an annotation to a nonexistent item
|
||||
stmt.params["item_id"] = this._invalidBookmarkId;
|
||||
stmt.params["anno"] = this._usedItemAttribute;
|
||||
stmt.execute();
|
||||
@ -962,7 +962,7 @@ tests.push({
|
||||
stmt.params['anno'] = this._usedItemAttribute;
|
||||
do_check_true(stmt.executeStep());
|
||||
stmt.finalize();
|
||||
// Check that an annotation to a nonexisting page has been removed
|
||||
// Check that an annotation to a nonexistent page has been removed
|
||||
stmt = mDBConn.createStatement("SELECT id FROM moz_items_annos WHERE item_id = 8888");
|
||||
do_check_false(stmt.executeStep());
|
||||
stmt.finalize();
|
||||
@ -1028,7 +1028,7 @@ tests.push({
|
||||
// Insert a place using the existing favicon entry
|
||||
this._validIconPlaceId = addPlace("http://www1.mozilla.org", 1);
|
||||
|
||||
// Insert a place using a nonexisting favicon entry
|
||||
// Insert a place using a nonexistent favicon entry
|
||||
this._invalidIconPlaceId = addPlace("http://www2.mozilla.org", 1337);
|
||||
},
|
||||
|
||||
|
@ -74,7 +74,7 @@ function run_test()
|
||||
// time-A/B/C/D checked below.
|
||||
|
||||
// ===== 2 =====
|
||||
// Test looking for non-existent / bogus data.
|
||||
// Test looking for nonexistent / bogus data.
|
||||
testnum++;
|
||||
do_check_false(fh.nameExists("blah"));
|
||||
do_check_false(fh.nameExists(""));
|
||||
|
@ -168,7 +168,7 @@ G_Preferences.prototype.getPref = function(key, opt_default) {
|
||||
G_Preferences.prototype.clearPref = function(which) {
|
||||
try {
|
||||
// This throws if the pref doesn't exist, which is fine because a
|
||||
// non-existent pref is cleared
|
||||
// nonexistent pref is cleared
|
||||
this.prefs_.clearUserPref(which);
|
||||
} catch(e) {}
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ function TEST_G_Protocol4Parser() {
|
||||
G_Assert(z, p.parse(t)["foo"] === "bar", "First in multiline");
|
||||
G_Assert(z, p.parse(t)["bar"] === "baz", "Second in multiline");
|
||||
G_Assert(z, p.parse(t)["bom"] === "yaz", "Third in multiline");
|
||||
G_Assert(z, p.parse(t)[""] === undefined, "Non-existent in multiline");
|
||||
G_Assert(z, p.parse(t)[""] === undefined, "Nonexistent in multiline");
|
||||
|
||||
// Test serialization
|
||||
|
||||
|
@ -458,7 +458,7 @@ function TEST_PROT_UrlCryptoKeyManager() {
|
||||
|
||||
G_Assert(z, !km.hasKey(), "KM already has key?");
|
||||
km.maybeLoadOldKey();
|
||||
G_Assert(z, !km.hasKey(), "KM loaded non-existent key?");
|
||||
G_Assert(z, !km.hasKey(), "KM loaded nonexistent key?");
|
||||
km.onGetKeyResponse(null);
|
||||
G_Assert(z, !km.hasKey(), "KM got key from null response?");
|
||||
km.onGetKeyResponse("");
|
||||
|
@ -79,7 +79,7 @@ function runTests()
|
||||
// and make sure the previous label is removed
|
||||
list.value = "this does not exist";
|
||||
is(list.value, "this does not exist", "Check the list value after setting it to something not associated witn an existing menuitem");
|
||||
is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a non-existent item");
|
||||
is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a nonexistent item");
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ function run_test() {
|
||||
do_check_eq(ltm.usedThemes[7].id, "x1");
|
||||
do_check_eq(ltm.getUsedTheme("x0"), null);
|
||||
|
||||
ltm.forgetUsedTheme("nonexisting");
|
||||
ltm.forgetUsedTheme("nonexistent");
|
||||
do_check_eq(ltm.usedThemes.length, 8);
|
||||
do_check_neq(ltm.currentTheme, null);
|
||||
|
||||
|
@ -142,7 +142,7 @@ function run_test() {
|
||||
// test the value of the preference root
|
||||
do_check_eq(extensions.all[0].prefs.root, "extensions.addon1@tests.mozilla.org.");
|
||||
|
||||
// test getting non-existing values
|
||||
// test getting nonexistent values
|
||||
var itemValue = inspector.prefs.getValue(testdata.missing, "default");
|
||||
do_check_eq(itemValue, "default");
|
||||
|
||||
|
@ -419,7 +419,7 @@ HandlerService.prototype = {
|
||||
var typeID = this._getTypeID(this._getClass(aHandlerInfo), aHandlerInfo.type);
|
||||
found = this._hasLiteralAssertion(typeID, NC_VALUE, aHandlerInfo.type);
|
||||
} catch (e) {
|
||||
// If the RDF threw (eg, corrupt file), treat as non-existent.
|
||||
// If the RDF threw (eg, corrupt file), treat as nonexistent.
|
||||
found = false;
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,7 @@ function run_test() {
|
||||
//**************************************************************************//
|
||||
// getTypeFromExtension tests
|
||||
|
||||
// test non-existent extension
|
||||
// test nonexistent extension
|
||||
var lolType = handlerSvc.getTypeFromExtension("lolcat");
|
||||
do_check_eq(lolType, "");
|
||||
|
||||
|
@ -75,7 +75,7 @@
|
||||
#define SHBrowseForFolderW(a) SHBrowseForFolder(a)
|
||||
#endif
|
||||
|
||||
// No-ops for non-existent ce global apis.
|
||||
// No-ops for nonexistent ce global apis.
|
||||
inline void FlashWindow(HWND window, BOOL ignore){}
|
||||
inline BOOL IsIconic(HWND inWnd){return false;}
|
||||
|
||||
|
@ -169,7 +169,7 @@ testTHashtable(nsTHashtable<EntityToUnicodeEntry>& hash, PRUint32 numEntries) {
|
||||
printf("Found %u\n", entry->mNode->mUnicode);
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
|
||||
EntityToUnicodeEntry* entry =
|
||||
hash.GetEntry("xxxy");
|
||||
@ -485,7 +485,7 @@ main(void) {
|
||||
printf("Found %s\n", str);
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (UniToEntity.Get(99446, &str)) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (13);
|
||||
@ -550,7 +550,7 @@ main(void) {
|
||||
printf("Found %s\n", str);
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (UniToEntityL.Get(99446, &str)) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (13);
|
||||
@ -619,7 +619,7 @@ main(void) {
|
||||
printf("Found %c\n", myChar->GetChar());
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (EntToUniClass.Get(NS_LITERAL_CSTRING("xxxx"), &myChar)) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (19);
|
||||
@ -687,7 +687,7 @@ main(void) {
|
||||
printf("Found %c\n", myChar->GetChar());
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (EntToUniClassL.Get(NS_LITERAL_CSTRING("xxxx"), &myChar)) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (19);
|
||||
@ -763,7 +763,7 @@ main(void) {
|
||||
printf("Found %c\n", myChar2);
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (EntToUniClass2.Get((nsISupports*) 0x55443316, &myChar2)) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (25);
|
||||
@ -836,7 +836,7 @@ main(void) {
|
||||
printf("Found %s\n", str.get());
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
nsCOMPtr<IFoo> myEnt;
|
||||
if (UniToEntClass2.Get(9462, getter_AddRefs(myEnt))) {
|
||||
printf("FOUND! BAD!\n");
|
||||
@ -910,7 +910,7 @@ main(void) {
|
||||
printf("Found %s\n", str.get());
|
||||
}
|
||||
|
||||
printf("Testing non-existent entries...");
|
||||
printf("Testing nonexistent entries...");
|
||||
if (UniToEntClass2L.Get(9462, getter_AddRefs(myEnt))) {
|
||||
printf("FOUND! BAD!\n");
|
||||
exit (31);
|
||||
|
@ -123,7 +123,7 @@ for (testnum = 1; testnum <= 15; testnum++) {
|
||||
|
||||
// test writing to a new file.
|
||||
let newfile = do_get_file("data/");
|
||||
newfile.append("non-existent-file.ini");
|
||||
newfile.append("nonexistent-file.ini");
|
||||
if (newfile.exists())
|
||||
newfile.remove(false);
|
||||
do_check_false(newfile.exists());
|
||||
@ -141,7 +141,7 @@ parser.writeFile();
|
||||
do_check_true(newfile.exists());
|
||||
checkParserOutput(parser, {section: {key: "value"} });
|
||||
// read it in again, check for same data.
|
||||
parser = parserForFile("data/non-existent-file.ini");
|
||||
parser = parserForFile("data/nonexistent-file.ini");
|
||||
checkParserOutput(parser, {section: {key: "value"} });
|
||||
|
||||
/* ========== 17 ========== */
|
||||
|
@ -37,7 +37,7 @@
|
||||
#filter substitution
|
||||
|
||||
// We need to override the default values of these preferences since all.js
|
||||
// assumes these are in the navigator package, which for us is non-existent.
|
||||
// assumes these are in the navigator package, which for us is nonexistent.
|
||||
// XXX(darin): perhaps all.js should not be seamonkey specific
|
||||
pref("general.useragent.locale", "@AB_CD@");
|
||||
pref("font.language.group", "chrome://global/locale/intl.properties");
|
||||
|
Loading…
Reference in New Issue
Block a user