diff --git a/accessible/public/nsIAccessibilityService.h b/accessible/public/nsIAccessibilityService.h index 18fd5bc66d65..2ce82ff6baab 100644 --- a/accessible/public/nsIAccessibilityService.h +++ b/accessible/public/nsIAccessibilityService.h @@ -139,7 +139,7 @@ public: /** * Invalidate the accessible tree when DOM tree or frame tree is changed. * - * @param aPresShell [in] the presShell where changes occured + * @param aPresShell [in] the presShell where changes occurred * @param aContent [in] the affected DOM content * @param aChangeType [in] the change type (see constants declared above) */ diff --git a/accessible/public/nsIAccessibleProvider.idl b/accessible/public/nsIAccessibleProvider.idl index 3a85e3ee6b3c..a2d196629b16 100644 --- a/accessible/public/nsIAccessibleProvider.idl +++ b/accessible/public/nsIAccessibleProvider.idl @@ -45,7 +45,7 @@ object. For that XBL binding of element should implement the interface. */ -[scriptable, uuid(3f7f9194-c625-4a85-8148-6d92d34897fa)] +[scriptable, uuid(89fb8270-4f25-11df-9879-0800200c9a66)] interface nsIAccessibleProvider : nsISupports { /** @@ -126,7 +126,7 @@ interface nsIAccessibleProvider : nsISupports /** Used for label element */ const long XFormsLabel = 0x00002001; /** Used for output element */ - const long XFormsOuput = 0x00002002; + const long XFormsOutput = 0x00002002; /** Used for trigger and submit elements */ const long XFormsTrigger = 0x00002003; /** Used for input and textarea elements */ diff --git a/accessible/src/base/nsAccessibilityService.cpp b/accessible/src/base/nsAccessibilityService.cpp index 695b016f8823..18a03355761a 100644 --- a/accessible/src/base/nsAccessibilityService.cpp +++ b/accessible/src/base/nsAccessibilityService.cpp @@ -1971,7 +1971,7 @@ nsAccessibilityService::CreateAccessibleByType(nsIDOMNode *aNode, case nsIAccessibleProvider::XFormsLabel: accessible = new nsXFormsLabelAccessible(aNode, aWeakShell); break; - case nsIAccessibleProvider::XFormsOuput: + case nsIAccessibleProvider::XFormsOutput: accessible = new nsXFormsOutputAccessible(aNode, aWeakShell); break; case nsIAccessibleProvider::XFormsTrigger: diff --git a/accessible/src/base/nsDocAccessible.cpp b/accessible/src/base/nsDocAccessible.cpp index ff2b53314ea4..adfcbdae422c 100644 --- a/accessible/src/base/nsDocAccessible.cpp +++ b/accessible/src/base/nsDocAccessible.cpp @@ -2042,7 +2042,7 @@ nsDocAccessible::InvalidateCacheSubtree(nsIContent *aChild, nsAccEvent::eCoalesceFromSameSubtree, isAsynch); - // Check to see change occured in an ARIA menu, and fire + // Check to see change occurred in an ARIA menu, and fire // an EVENT_MENUPOPUP_START if it did. nsRoleMapEntry *roleMapEntry = nsAccUtils::GetRoleMapEntry(childNode); if (roleMapEntry && roleMapEntry->role == nsIAccessibleRole::ROLE_MENUPOPUP) { @@ -2051,7 +2051,7 @@ nsDocAccessible::InvalidateCacheSubtree(nsIContent *aChild, isAsynch); } - // Check to see if change occured inside an alert, and fire an EVENT_ALERT if it did + // Check to see if change occurred inside an alert, and fire an EVENT_ALERT if it did nsIContent *ancestor = aChild; while (PR_TRUE) { if (roleMapEntry && roleMapEntry->role == nsIAccessibleRole::ROLE_ALERT) { diff --git a/accessible/src/html/nsHyperTextAccessible.cpp b/accessible/src/html/nsHyperTextAccessible.cpp index 7c0e6bc86d17..f6cee30a165a 100644 --- a/accessible/src/html/nsHyperTextAccessible.cpp +++ b/accessible/src/html/nsHyperTextAccessible.cpp @@ -1007,7 +1007,7 @@ nsresult nsHyperTextAccessible::GetTextHelper(EGetTextType aType, nsAccessibleTe } else { // Start moving forward from the start so that we don't get - // 2 words/lines if the offset occured on whitespace boundary + // 2 words/lines if the offset occurred on whitespace boundary // Careful, startOffset and endOffset are passed by reference to GetPosAndText() and changed // For BOUNDARY_LINE_END, make sure we start of this line startOffset = endOffset = finalStartOffset + (aBoundaryType == BOUNDARY_LINE_END); diff --git a/accessible/src/msaa/nsAccessibleWrap.cpp b/accessible/src/msaa/nsAccessibleWrap.cpp index 413fd74fe59a..022d623abb75 100644 --- a/accessible/src/msaa/nsAccessibleWrap.cpp +++ b/accessible/src/msaa/nsAccessibleWrap.cpp @@ -1738,7 +1738,7 @@ PRInt32 nsAccessibleWrap::GetChildIDFor(nsIAccessible* aAccessible) { // A child ID of the window is required, when we use NotifyWinEvent, // so that the 3rd party application can call back and get the IAccessible - // the event occured on. + // the event occurred on. void *uniqueID = nsnull; nsCOMPtr accessNode(do_QueryInterface(aAccessible)); diff --git a/accessible/tests/mochitest/test_name_button.html b/accessible/tests/mochitest/test_name_button.html index 64fc204f7662..93da72746270 100644 --- a/accessible/tests/mochitest/test_name_button.html +++ b/accessible/tests/mochitest/test_name_button.html @@ -128,10 +128,10 @@ - + - + diff --git a/build/autoconf/glib.m4 b/build/autoconf/glib.m4 index 8552155095a7..e6c4ee59caa8 100644 --- a/build/autoconf/glib.m4 +++ b/build/autoconf/glib.m4 @@ -183,7 +183,7 @@ main () echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means GLIB was incorrectly installed" + echo "*** exact error that occurred. This usually means GLIB was incorrectly installed" echo "*** or that you have moved GLIB since it was installed. In the latter case, you" echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" diff --git a/build/autoconf/libIDL.m4 b/build/autoconf/libIDL.m4 index 3c0979c080ee..c558b0b36452 100644 --- a/build/autoconf/libIDL.m4 +++ b/build/autoconf/libIDL.m4 @@ -181,7 +181,7 @@ main () echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means libIDL was incorrectly installed" + echo "*** exact error that occurred. This usually means libIDL was incorrectly installed" echo "*** or that you have moved libIDL since it was installed. In the latter case, you" echo "*** may want to edit the libIDL-config script: $LIBIDL_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" diff --git a/caps/idl/nsIScriptSecurityManager.idl b/caps/idl/nsIScriptSecurityManager.idl index 8b373774af78..5c2d35ca5dd3 100644 --- a/caps/idl/nsIScriptSecurityManager.idl +++ b/caps/idl/nsIScriptSecurityManager.idl @@ -316,7 +316,7 @@ interface nsIScriptSecurityManager : nsIXPCSecurityManager * If no scripted code is running "above" (or called from) fp, then * instead of looking at cx->globalObject, we will return |principal|. * This function only affects |cx|. If someone pushes another context onto - * the context stack, then it supercedes this call. + * the context stack, then it supersedes this call. * NOTE: If |fp| is non-null popContextPrincipal must be called before fp * has finished executing. * diff --git a/config/configobj.py b/config/configobj.py index a60cff89127d..97b252cbe175 100644 --- a/config/configobj.py +++ b/config/configobj.py @@ -261,7 +261,7 @@ class DuplicateError(ConfigObjError): class ConfigspecError(ConfigObjError): """ - An error occured whilst parsing a configspec. + An error occurred whilst parsing a configspec. """ class InterpolationError(ConfigObjError): @@ -1600,7 +1600,7 @@ class ConfigObj(Section): Handle an error according to the error settings. Either raise the error or store it. - The error will have occured at ``cur_index`` + The error will have occurred at ``cur_index`` """ line = infile[cur_index] cur_index += 1 diff --git a/config/fast-update.pl b/config/fast-update.pl index 0e5b795d102e..d8ff81b50f13 100755 --- a/config/fast-update.pl +++ b/config/fast-update.pl @@ -4,7 +4,7 @@ # # This command, fast-update.pl, does a (fast) cvs update of the current # directory. It is fast because the cvs up command is only run on those -# directories / sub-directories where changes have occured since the +# directories / sub-directories where changes have occurred since the # last fast-update. # # The last update time is stored in a ".fast-update" file in the current diff --git a/config/outofdate.pl b/config/outofdate.pl index 26a05c2e3303..67640d2b3a3d 100644 --- a/config/outofdate.pl +++ b/config/outofdate.pl @@ -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-existant class files are considered to be real old :-) +#files (non-existent class files are considered to be real old :-) # $found = 1; diff --git a/content/base/public/nsINode.h b/content/base/public/nsINode.h index f1d2caea003e..3e243c55cbb5 100644 --- a/content/base/public/nsINode.h +++ b/content/base/public/nsINode.h @@ -194,13 +194,13 @@ inline nsINode* NODE_FROM(C& aContent, D& aDocument) * Class used to detect unexpected mutations. To use the class create an * nsMutationGuard on the stack before unexpected mutations could occur. * You can then at any time call Mutated to check if any unexpected mutations - * have occured. + * have occurred. * * When a guard is instantiated sMutationCount is set to 300. It is then * decremented by every mutation (capped at 0). This means that we can only * detect 300 mutations during the lifetime of a single guard, however that * should be more then we ever care about as we usually only care if more then - * one mutation has occured. + * one mutation has occurred. * * When the guard goes out of scope it will adjust sMutationCount so that over * the lifetime of the guard the guard itself has not affected sMutationCount, @@ -227,7 +227,7 @@ public: } /** - * Returns true if any unexpected mutations have occured. You can pass in + * Returns true if any unexpected mutations have occurred. You can pass in * an 8-bit ignore count to ignore a number of expected mutations. */ PRBool Mutated(PRUint8 aIgnoreCount) diff --git a/content/base/src/nsContentAreaDragDrop.h b/content/base/src/nsContentAreaDragDrop.h index a06a75cecfcf..1f8071c3a688 100644 --- a/content/base/src/nsContentAreaDragDrop.h +++ b/content/base/src/nsContentAreaDragDrop.h @@ -81,7 +81,7 @@ public: * aDragSelection - [out] set to true to indicate that a selection is being * dragged, rather than a specific node * aDragNode - [out] the link, image or area being dragged, or null if the - * drag occured on another element. + * drag occurred on another element. */ static nsresult GetDragData(nsIDOMWindow* aWindow, nsIContent* aTarget, diff --git a/content/base/src/nsContentUtils.cpp b/content/base/src/nsContentUtils.cpp index fceaf0559b28..3d9286f5fb93 100644 --- a/content/base/src/nsContentUtils.cpp +++ b/content/base/src/nsContentUtils.cpp @@ -4571,7 +4571,7 @@ nsContentUtils::ProcessViewportInfo(nsIDocument *aDocument, while ((tip != end) && IS_SEPARATOR(*tip)) ++tip; - /* Read through and find tokens seperated by separators. */ + /* Read through and find tokens separated by separators. */ while (tip != end) { /* Synchronize tip and tail. */ diff --git a/content/base/test/file_bug416317.xhtml b/content/base/test/file_bug416317.xhtml index 279b1808c978..581ec4e1f547 100644 --- a/content/base/test/file_bug416317.xhtml +++ b/content/base/test/file_bug416317.xhtml @@ -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-existant descendant", "#firstp #foobar", [] ); + t( "ID selector with non-existent 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-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986 + t( "ID selector with non-existent ancestor", "#asdfasdf #foobar", [] ); // bug #986 //t( "body div#form", [], "ID selector within the context of another element" ); diff --git a/content/base/test/test_csp_redirects.html b/content/base/test/test_csp_redirects.html index 0de121a54153..c5917bfe6ad9 100644 --- a/content/base/test/test_csp_redirects.html +++ b/content/base/test/test_csp_redirects.html @@ -100,7 +100,7 @@ var testExpectedResults = { "font-src": true, }; // takes the name of the test, the URL that was tested, and whether the -// load occured +// load occurred var testResult = function(testName, url, result) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); log(" testName: "+testName+", result: "+result+", expected: "+testExpectedResults[testName]+"\n"); diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index 3c8ce54bdc59..99e481555fae 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -2048,7 +2048,7 @@ nsEventStateManager::DetermineDragTarget(nsPresContext* aPresContext, if (NS_SUCCEEDED(dsti->GetItemType(&type)) && type != nsIDocShellTreeItem::typeChrome) { // mGestureDownContent is the node where the mousedown event for the drag - // occured, and aSelectionTarget is the node to use when a selection is used + // occurred, and aSelectionTarget is the node to use when a selection is used nsresult rv = nsContentAreaDragDrop::GetDragData(window, mGestureDownContent, aSelectionTarget, mGestureDownAlt, diff --git a/content/events/test/test_dragstart.html b/content/events/test/test_dragstart.html index b2512ff4ce25..4b013ca6946a 100644 --- a/content/events/test/test_dragstart.html +++ b/content/events/test/test_dragstart.html @@ -32,7 +32,7 @@ function runTests() function afterDragTests() { - // the dragstart should have occured due to moving the mouse. gDataTransfer + // the dragstart should have occurred due to moving the mouse. gDataTransfer // caches the dataTransfer that was used, however it should now be empty and // be read only. ok(gDataTransfer instanceof DataTransfer, "DataTransfer after dragstart event"); @@ -157,7 +157,7 @@ function test_DataTransfer(dt) is(dt.mozUserCancelled, false, "userCancelled"); - // because an exception occured, the data should not have been added + // because an exception occurred, the data should not have been added is(dt.mozItemCount, 0, "empty setDataAt index too high itemCount"); dt.getData("text/plain", "", "empty setDataAt index too high getData"); diff --git a/content/html/content/src/nsHTMLFormElement.h b/content/html/content/src/nsHTMLFormElement.h index 2f198f566dd7..9382ac254c52 100644 --- a/content/html/content/src/nsHTMLFormElement.h +++ b/content/html/content/src/nsHTMLFormElement.h @@ -188,7 +188,7 @@ public: nsresult RemoveElement(nsGenericHTMLFormElement* aElement, PRBool aNotify); /** - * Remove an element from the lookup table mainted by the form. + * Remove an element from the lookup table maintained by the form. * We can't fold this method into RemoveElement() because when * RemoveElement() is called it doesn't know if the element is * removed because the id attribute has changed, or bacause the @@ -210,7 +210,7 @@ public: nsresult AddElement(nsGenericHTMLFormElement* aElement, PRBool aNotify); /** - * Add an element to the lookup table mainted by the form. + * Add an element to the lookup table maintained by the form. * * We can't fold this method into AddElement() because when * AddElement() is called, the form control has no diff --git a/content/html/content/src/nsHTMLMediaElement.cpp b/content/html/content/src/nsHTMLMediaElement.cpp index b274501535e0..112858c184ed 100644 --- a/content/html/content/src/nsHTMLMediaElement.cpp +++ b/content/html/content/src/nsHTMLMediaElement.cpp @@ -739,7 +739,7 @@ nsresult nsHTMLMediaElement::LoadResource(nsIURI* aURI) } // Else the channel must be open and starting to download. If it encounters - // a non-catestrophic failure, it will set a new task to continue loading + // a non-catastrophic failure, it will set a new task to continue loading // another candidate. return NS_OK; } diff --git a/content/media/ogg/nsOggReader.cpp b/content/media/ogg/nsOggReader.cpp index 11bdc3715240..ec92f5227f2d 100644 --- a/content/media/ogg/nsOggReader.cpp +++ b/content/media/ogg/nsOggReader.cpp @@ -1003,7 +1003,7 @@ nsresult nsOggReader::Seek(PRInt64 aTarget, PRInt64 aStartTime, PRInt64 aEndTime // keyframe. It's usually faster to just download this extra data, rather // tham perform two bisections to find the seek target's keyframe. We // don't do this offsetting when seeking in a buffered ranges (above), - // as the extra decoding causes a noticable speed hit when all the data + // as the extra decoding causes a noticeable speed hit when all the data // is buffered. PRInt64 keyframeOffsetMs = 0; if (HasVideo() && mTheoraState) { diff --git a/content/media/test/file_access_controls.html b/content/media/test/file_access_controls.html index 3c0b3162c55b..aa918d148f69 100644 --- a/content/media/test/file_access_controls.html +++ b/content/media/test/file_access_controls.html @@ -41,7 +41,7 @@ var gTests = [ // Test 6 url: "http://example.org:8000/tests/content/media/test/320x240.ogv", result: "error", - description: "Won't load from differnet port on same domain" + description: "Won't load from different port on same domain" },{ // Test 7 url: "http://example.org:8000/tests/content/media/test/320x240.allow-origin.ogv", diff --git a/content/xbl/src/nsXBLContentSink.cpp b/content/xbl/src/nsXBLContentSink.cpp index 615d60b04628..919dff349914 100644 --- a/content/xbl/src/nsXBLContentSink.cpp +++ b/content/xbl/src/nsXBLContentSink.cpp @@ -316,7 +316,7 @@ nsXBLContentSink::HandleEndElement(const PRUnichar *aName) if (nameSpaceID == kNameSpaceID_XBL) { if (mState == eXBL_Error) { // Check whether we've opened this tag before; we may not have if - // it was a real XBL tag before the error occured. + // it was a real XBL tag before the error occurred. if (!GetCurrentContent()->NodeInfo()->Equals(localName, nameSpaceID)) { // OK, this tag was never opened as far as the XML sink is diff --git a/content/xbl/src/nsXBLContentSink.h b/content/xbl/src/nsXBLContentSink.h index 11d57627bed8..425f417cbc38 100644 --- a/content/xbl/src/nsXBLContentSink.h +++ b/content/xbl/src/nsXBLContentSink.h @@ -55,7 +55,7 @@ typedef enum { eXBL_InResources, /* Inside a */ eXBL_InImplementation, /* Inside a */ eXBL_InHandlers, /* Inside a */ - eXBL_Error /* An error has occured. Suspend binding construction */ + eXBL_Error /* An error has occurred. Suspend binding construction */ } XBLPrimaryState; /* diff --git a/content/xslt/src/base/txErrorObserver.h b/content/xslt/src/base/txErrorObserver.h index 4158f44be6bd..bb722fe38c13 100644 --- a/content/xslt/src/base/txErrorObserver.h +++ b/content/xslt/src/base/txErrorObserver.h @@ -99,7 +99,7 @@ public: **/ void receiveError(const nsAString& errorMessage, nsresult aRes); - virtual void supressWarnings(MBool supress); + virtual void suppressWarnings(MBool suppress); private: diff --git a/content/xslt/src/base/txSimpleErrorObserver.cpp b/content/xslt/src/base/txSimpleErrorObserver.cpp index e3cb9c807833..ab67a5d63263 100644 --- a/content/xslt/src/base/txSimpleErrorObserver.cpp +++ b/content/xslt/src/base/txSimpleErrorObserver.cpp @@ -75,6 +75,6 @@ void SimpleErrorObserver::receiveError(const nsAString& errorMessage, #endif } -void SimpleErrorObserver::supressWarnings(MBool supress) { - this->hideWarnings = supress; -} //-- supressWarnings +void SimpleErrorObserver::suppressWarnings(MBool suppress) { + this->hideWarnings = suppress; +} //-- suppressWarnings diff --git a/content/xslt/src/xslt/txKey.h b/content/xslt/src/xslt/txKey.h index 9efbbdb80f52..983044e603a1 100644 --- a/content/xslt/src/xslt/txKey.h +++ b/content/xslt/src/xslt/txKey.h @@ -132,7 +132,7 @@ public: * Adds a match/use pair. * @param aMatch match-pattern * @param aUse use-expression - * @return PR_FALSE if an error occured, PR_TRUE otherwise + * @return PR_FALSE if an error occurred, PR_TRUE otherwise */ PRBool addKey(nsAutoPtr aMatch, nsAutoPtr aUse); diff --git a/content/xslt/src/xslt/txKeyFunctionCall.cpp b/content/xslt/src/xslt/txKeyFunctionCall.cpp index 682ab221f6cc..a74e020052f2 100644 --- a/content/xslt/src/xslt/txKeyFunctionCall.cpp +++ b/content/xslt/src/xslt/txKeyFunctionCall.cpp @@ -299,7 +299,7 @@ txKeyHash::init() * Adds a match/use pair. * @param aMatch match-pattern * @param aUse use-expression - * @return PR_FALSE if an error occured, PR_TRUE otherwise + * @return PR_FALSE if an error occurred, PR_TRUE otherwise */ PRBool txXSLKey::addKey(nsAutoPtr aMatch, nsAutoPtr aUse) { diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index b77908975db8..39e0cc1d1313 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -1770,7 +1770,7 @@ nsDOMClassInfo::ThrowJSException(JSContext *cx, nsresult aResult) // XXX This probably wants to be localized, but that can fail in ways that // are hard to report correctly. JSString *str = - JS_NewStringCopyZ(cx, "An error occured throwing an exception"); + JS_NewStringCopyZ(cx, "An error occurred throwing an exception"); if (!str) { // JS_NewStringCopyZ reported the error for us. return NS_OK; diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 1d584b0301e0..bedf805511cf 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -1522,7 +1522,7 @@ nsFocusManager::Blur(nsPIDOMWindow* aWindowToClear, } else if (mActiveWindow) { // Otherwise, the blur of the element without blurring the document - // occured normally. Call UpdateCaret to redisplay the caret at the right + // occurred normally. Call UpdateCaret to redisplay the caret at the right // location within the document. This is needed to ensure that the caret // used for caret browsing is made visible again when an input field is // blurred. diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index aa77276b9a89..1f6eac3a7bb9 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -653,7 +653,7 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow) mShowFocusRings(PR_TRUE), #endif mShowFocusRingForContent(PR_FALSE), - mFocusByKeyOccured(PR_FALSE), + mFocusByKeyOccurred(PR_FALSE), mHasAcceleration(PR_FALSE), mTimeoutInsertionPoint(nsnull), mTimeoutPublicIdCounter(1), @@ -6969,7 +6969,7 @@ nsGlobalWindow::SetFocusedNode(nsIContent* aNode, // mShowFocusRingForContent, as we don't want this to be permanent for // the window. if (mFocusMethod == nsIFocusManager::FLAG_BYKEY) { - mFocusByKeyOccured = PR_TRUE; + mFocusByKeyOccurred = PR_TRUE; } else if (aFocusMethod & nsIFocusManager::FLAG_SHOWRING #ifdef MOZ_WIDGET_GTK2 || mFocusedNode->IsXUL() @@ -6996,7 +6996,7 @@ nsGlobalWindow::ShouldShowFocusRing() { FORWARD_TO_INNER(ShouldShowFocusRing, (), PR_FALSE); - return mShowFocusRings || mShowFocusRingForContent || mFocusByKeyOccured; + return mShowFocusRings || mShowFocusRingForContent || mFocusByKeyOccurred; } void diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index 263124a96618..cf33bb591fb4 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -738,9 +738,9 @@ protected: // This will be reset when another element is focused PRPackedBool mShowFocusRingForContent : 1; - // true if tab navigation has occured for this window. Focus rings + // true if tab navigation has occurred for this window. Focus rings // should be displayed. - PRPackedBool mFocusByKeyOccured : 1; + PRPackedBool mFocusByKeyOccurred : 1; // Indicates whether this window is getting acceleration change events PRPackedBool mHasAcceleration : 1; diff --git a/dom/locales/en-US/chrome/xslt/xslt.properties b/dom/locales/en-US/chrome/xslt/xslt.properties index e40899ca1419..d7cdd5d21617 100644 --- a/dom/locales/en-US/chrome/xslt/xslt.properties +++ b/dom/locales/en-US/chrome/xslt/xslt.properties @@ -44,7 +44,7 @@ 7 = Attribute value illegal in XSLT 1.0. 8 = An XPath expression was expected to return a NodeSet. 9 = XSLT transformation was terminated by . -10 = A network error occured loading an XSLT stylesheet: +10 = A network error occurred loading an XSLT stylesheet: 11 = An XSLT stylesheet does not have an XML mimetype: 12 = An XSLT stylesheet directly or indirectly imports or includes itself: 13 = An XPath function was called with the wrong number of arguments. diff --git a/intl/uconv/public/nsIUnicodeEncoder.h b/intl/uconv/public/nsIUnicodeEncoder.h index d7da8d0699f3..d06fd936e018 100644 --- a/intl/uconv/public/nsIUnicodeEncoder.h +++ b/intl/uconv/public/nsIUnicodeEncoder.h @@ -154,7 +154,7 @@ public: * method would have as default the assumed network order. * * For the last converted char, even if there is not enough output - * space, a partial ouput must be done until all available space will be + * space, a partial output must be done until all available space will be * used. The rest of the output should be buffered until more space becomes * available. But this is not also true about the error handling method!!! * So be very, very careful... diff --git a/intl/uconv/util/uscan.c b/intl/uconv/util/uscan.c index 63b2beee91e5..6832a04f3597 100644 --- a/intl/uconv/util/uscan.c +++ b/intl/uconv/util/uscan.c @@ -664,7 +664,7 @@ PRIVATE PRBool uCheckAndScanJohabHangul( ) { /* since we don't have code to convert Johab to Unicode right now * - * make this part of code #if 0 to save space untill we fully test it */ + * make this part of code #if 0 to save space until we fully test it */ if(inbuflen < 2) return PR_FALSE; else { diff --git a/intl/unicharutil/note.txt b/intl/unicharutil/note.txt index 2580d432a6cd..6ffef646ac23 100644 --- a/intl/unicharutil/note.txt +++ b/intl/unicharutil/note.txt @@ -10,7 +10,7 @@ ftp://crl.nmsu.edu/CLR/multiling/unicode/ucdata.zip After you get the package, you need to put those file into different - place under Mozilla tree untill we check them in. + place under Mozilla tree until we check them in. a. put ucdata.c and ucdata.h into mozilla/modules/unicharutil/src b. put MUTTUCData.txt and ucgendat.c into mozilla/modules/unicharutil/tools diff --git a/js/jsd/jsd.h b/js/jsd/jsd.h index 6e0a412db130..c07112dbdce9 100644 --- a/js/jsd/jsd.h +++ b/js/jsd/jsd.h @@ -51,7 +51,7 @@ /* * These can be controled by the makefile, but this allows a place to set -* the values always used in the mozilla client, but perhaps done differnetly +* the values always used in the mozilla client, but perhaps done differently * in other embeddings. */ #ifdef MOZILLA_CLIENT diff --git a/js/src/editline/README b/js/src/editline/README index 53ec359f7e47..bbec0fff47e0 100644 --- a/js/src/editline/README +++ b/js/src/editline/README @@ -47,7 +47,7 @@ changes over that version include: More robust Calling sequence changed to be compatible with readline. Test program, new manpage, better configuration - More system-independant; includes Unix and OS-9 support. + More system-independent; includes Unix and OS-9 support. This contains some changes since the posting to comp.sources.misc: Bugfix for completion on absolute pathnames. diff --git a/js/src/jspubtd.h b/js/src/jspubtd.h index 9171a22c2eb8..c3eb5c58d3d6 100644 --- a/js/src/jspubtd.h +++ b/js/src/jspubtd.h @@ -381,7 +381,7 @@ extern JSMarkOp js_WrongTypeForClassTracer; #endif /* - * Tracer callback, called for each traceable thing directly refrenced by a + * Tracer callback, called for each traceable thing directly referenced by a * particular object or runtime structure. It is the callback responsibility * to ensure the traversal of the full object graph via calling eventually * JS_TraceChildren on the passed thing. In this case the callback must be diff --git a/js/src/tests/e4x/XML/13.4.4.25.js b/js/src/tests/e4x/XML/13.4.4.25.js index 1ea111bcf3e3..968556610443 100644 --- a/js/src/tests/e4x/XML/13.4.4.25.js +++ b/js/src/tests/e4x/XML/13.4.4.25.js @@ -54,7 +54,7 @@ x = TEST(2, "element", x.bravo.nodeKind()); TEST(3, "attribute", x.@attr1.nodeKind()); -// Non-existant node type is text +// Nonexistent node type is text x = new XML(); TEST(4, "text", x.nodeKind()); TEST(5, "text", XML.prototype.nodeKind()); diff --git a/js/src/tests/ecma/Date/15.9.4.2.js b/js/src/tests/ecma/Date/15.9.4.2.js index 5a518e644200..8a8085fc45c1 100644 --- a/js/src/tests/ecma/Date/15.9.4.2.js +++ b/js/src/tests/ecma/Date/15.9.4.2.js @@ -63,7 +63,7 @@ gTestfile = '15.9.4.2.js'; Date.parse(x.toGMTString()) test_togmt() Date.parse(x.toLocaleString()) is not required to - produce the same number value as the preceeding three + produce the same number value as the preceding three expressions. in general the value produced by Date.parse is implementation dependent when given any string value that could not be produced in that diff --git a/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js b/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js index 51f7bb763b3c..f6a0caf7662e 100644 --- a/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js +++ b/js/src/tests/ecma/FunctionObjects/15.3.1.1-3.js @@ -45,7 +45,7 @@ gTestfile = '15.3.1.1-3.js'; new Function(p1, p2, ..., pn, body ) Description: The last argument specifies the body (executable code) - of a function; any preceeding arguments sepcify formal + of a function; any preceding arguments sepcify formal parameters. See the text for description of this section. diff --git a/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js b/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js index d76e57b82895..3f4b59e3b491 100644 --- a/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js +++ b/js/src/tests/ecma/FunctionObjects/15.3.2.1-1.js @@ -44,7 +44,7 @@ gTestfile = '15.3.2.1-1.js'; new Function(p1, p2, ..., pn, body ) Description: The last argument specifies the body (executable code) - of a function; any preceeding arguments sepcify formal + of a function; any preceding arguments sepcify formal parameters. See the text for description of this section. diff --git a/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js b/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js index 80b1c41e00f3..bd437cece2ff 100644 --- a/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js +++ b/js/src/tests/ecma/FunctionObjects/15.3.2.1-3.js @@ -44,7 +44,7 @@ gTestfile = '15.3.2.1-3.js'; new Function(p1, p2, ..., pn, body ) Description: The last argument specifies the body (executable code) - of a function; any preceeding arguments sepcify formal + of a function; any preceding arguments sepcify formal parameters. See the text for description of this section. diff --git a/js/src/tests/ecma/extensions/15.3.2.1-1.js b/js/src/tests/ecma/extensions/15.3.2.1-1.js index fab359211faf..e61293e866b9 100644 --- a/js/src/tests/ecma/extensions/15.3.2.1-1.js +++ b/js/src/tests/ecma/extensions/15.3.2.1-1.js @@ -44,7 +44,7 @@ gTestfile = '15.3.2.1-1.js'; new Function(p1, p2, ..., pn, body ) Description: The last argument specifies the body (executable code) - of a function; any preceeding arguments sepcify formal + of a function; any preceding arguments sepcify formal parameters. See the text for description of this section. diff --git a/js/src/tests/js1_5/GC/regress-203278-3.js b/js/src/tests/js1_5/GC/regress-203278-3.js index 3c825c772461..f04897592b4e 100644 --- a/js/src/tests/js1_5/GC/regress-203278-3.js +++ b/js/src/tests/js1_5/GC/regress-203278-3.js @@ -46,7 +46,7 @@ var expect = 'PASS'; printBugNumber(BUGNUMBER); printStatus (summary); -// Prepare array a to cause O(a.length^2) bahaviour in the current +// Prepare array a to cause O(a.length^2) behaviour in the current // DeutschSchorrWaite implementation var a = new Array(1000 * 100); diff --git a/js/src/tests/js1_5/extensions/regress-313763.js b/js/src/tests/js1_5/extensions/regress-313763.js index f6c5c5d8eb05..08166b983801 100644 --- a/js/src/tests/js1_5/extensions/regress-313763.js +++ b/js/src/tests/js1_5/extensions/regress-313763.js @@ -51,7 +51,7 @@ var array = Array(N); array[N - 1] = 1; array[N - 2] = 2; -// Set getter not to wait untill engine loops through 2^31 holes in the array. +// Set getter not to wait until engine loops through 2^31 holes in the array. var LOOP_TERMINATOR = "stop_long_loop"; array.__defineGetter__(N - 2, function() { throw "stop_long_loop"; diff --git a/js/src/tests/js1_7/extensions/regress-346021.js b/js/src/tests/js1_7/extensions/regress-346021.js index 42d7e8508175..5f35c0dcf75b 100644 --- a/js/src/tests/js1_7/extensions/regress-346021.js +++ b/js/src/tests/js1_7/extensions/regress-346021.js @@ -38,7 +38,7 @@ var gTestfile = 'regress-346021.js'; //----------------------------------------------------------------------------- var BUGNUMBER = 346021; -var summary = 'Implmenting __iterator__ as generator'; +var summary = 'Implementing __iterator__ as generator'; var actual = ''; var expect = ''; diff --git a/js/src/tests/jsDriver.pl b/js/src/tests/jsDriver.pl index cc156e9db432..5cfb43277386 100755 --- a/js/src/tests/jsDriver.pl +++ b/js/src/tests/jsDriver.pl @@ -206,7 +206,7 @@ sub execute_tests { $current_test = $test; # Append the shell.js files to the shell_command if they're there. - # (only check for their existance if the suite or test_dir has changed + # (only check for their existence if the suite or test_dir has changed # since the last time we looked.) if ($last_suite ne $suite || $last_test_dir ne $test_dir) { $shell_command = &xp_path($engine_command); diff --git a/js/src/tests/spidermonkey-n-1.8.0.tests b/js/src/tests/spidermonkey-n-1.8.0.tests index e5d0898cce69..288b58c495aa 100755 --- a/js/src/tests/spidermonkey-n-1.8.0.tests +++ b/js/src/tests/spidermonkey-n-1.8.0.tests @@ -12,7 +12,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n-1.8.1.tests b/js/src/tests/spidermonkey-n-1.8.1.tests index e5d0898cce69..288b58c495aa 100755 --- a/js/src/tests/spidermonkey-n-1.8.1.tests +++ b/js/src/tests/spidermonkey-n-1.8.1.tests @@ -12,7 +12,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n-1.9.0.tests b/js/src/tests/spidermonkey-n-1.9.0.tests index 8d00a243569b..0548ac373974 100755 --- a/js/src/tests/spidermonkey-n-1.9.0.tests +++ b/js/src/tests/spidermonkey-n-1.9.0.tests @@ -11,7 +11,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n-1.9.1.tests b/js/src/tests/spidermonkey-n-1.9.1.tests index d1496a5ebd1b..b69ded377727 100755 --- a/js/src/tests/spidermonkey-n-1.9.1.tests +++ b/js/src/tests/spidermonkey-n-1.9.1.tests @@ -11,7 +11,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n-1.9.2.tests b/js/src/tests/spidermonkey-n-1.9.2.tests index d1496a5ebd1b..b69ded377727 100644 --- a/js/src/tests/spidermonkey-n-1.9.2.tests +++ b/js/src/tests/spidermonkey-n-1.9.2.tests @@ -11,7 +11,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n-1.9.3.tests b/js/src/tests/spidermonkey-n-1.9.3.tests index 659617373af2..eea85daf7a49 100644 --- a/js/src/tests/spidermonkey-n-1.9.3.tests +++ b/js/src/tests/spidermonkey-n-1.9.3.tests @@ -11,7 +11,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/tests/spidermonkey-n.tests b/js/src/tests/spidermonkey-n.tests index 72c6896ac7fa..4e72e20e4aaf 100755 --- a/js/src/tests/spidermonkey-n.tests +++ b/js/src/tests/spidermonkey-n.tests @@ -11,7 +11,7 @@ js1_3/regress/function-001-n.js js1_5/Regress/regress-119719.js # # Spidermonkey now defaults lineNumber and fileName -# to the location and file where the exception occured. +# to the location and file where the exception occurred. # exclude original test which assumes the defaults are # 0 and '' # diff --git a/js/src/xpconnect/crashtests/193710.html b/js/src/xpconnect/crashtests/193710.html index 4a6d95275221..1320e51356d9 100644 --- a/js/src/xpconnect/crashtests/193710.html +++ b/js/src/xpconnect/crashtests/193710.html @@ -2,7 +2,7 @@ - + diff --git a/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp b/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp index 2afa9421e4c3..78eeb01e4d33 100644 --- a/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp +++ b/js/src/xpconnect/src/XPCChromeObjectWrapper.cpp @@ -341,7 +341,7 @@ GetWrappedJSObject(JSContext *cx, JSObject *obj) return xclasp->wrappedObject(cx, obj); } -// Get the (possibly non-existant) COW off of an object +// Get the (possibly nonexistent) COW off of an object // TODO Move to XPCWrapper and share with other wrappers. static inline JSObject * diff --git a/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp b/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp index efdcf15a9218..70a0ca962b9a 100644 --- a/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp +++ b/js/src/xpconnect/src/XPCCrossOriginWrapper.cpp @@ -120,7 +120,7 @@ ThrowException(nsresult ex, JSContext *cx) return JS_FALSE; } -// Get the (possibly non-existant) XOW off of an object +// Get the (possibly nonexistent) XOW off of an object static inline JSObject * GetWrapper(JSObject *obj) diff --git a/js/src/xpconnect/src/XPCDispObject.cpp b/js/src/xpconnect/src/XPCDispObject.cpp index ab80aab8e136..f55dc6c6915f 100644 --- a/js/src/xpconnect/src/XPCDispObject.cpp +++ b/js/src/xpconnect/src/XPCDispObject.cpp @@ -246,7 +246,7 @@ JSBool XPCDispObject::Dispatch(XPCCallContext& ccx, IDispatch * disp, *retval = val; } } - // Set the result and throw the error if one occured + // Set the result and throw the error if one occurred ccx.GetXPCContext()->SetLastResult(invokeResult); if(NS_FAILED(invokeResult)) diff --git a/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp b/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp index b77c13dbbfa5..63e829bf9142 100644 --- a/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp +++ b/js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp @@ -281,7 +281,7 @@ GetWrappedJSObject(JSContext *cx, JSObject *obj) return xclasp->wrappedObject(cx, obj); } -// Get the (possibly non-existant) SOW off of an object +// Get the (possibly nonexistent) SOW off of an object static inline JSObject * GetWrapper(JSObject *obj) diff --git a/js/src/xpconnect/src/xpc.msg b/js/src/xpconnect/src/xpc.msg index e09a2b21dc06..65fa12dd1827 100644 --- a/js/src/xpconnect/src/xpc.msg +++ b/js/src/xpconnect/src/xpc.msg @@ -163,7 +163,7 @@ XPC_MSG_DEF(NS_ERROR_LOSS_OF_SIGNIFICANT_DATA , "Data conversion failed be XPC_MSG_DEF(NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA , "Data conversion succeeded but data was rounded to fit") #ifdef XPC_IDISPATCH_SUPPORT -XPC_MSG_DEF(NS_ERROR_XPC_COM_UNKNOWN , "Unknown COM error occured") +XPC_MSG_DEF(NS_ERROR_XPC_COM_UNKNOWN , "Unknown COM error occurred") XPC_MSG_DEF(NS_ERROR_XPC_COM_ERROR , "COM Error") XPC_MSG_DEF(NS_ERROR_XPC_COM_INVALID_CLASS_ID , "Invalid class ID") XPC_MSG_DEF(NS_ERROR_XPC_COM_CREATE_FAILED , "Unable to create an instance of the desired COM class") diff --git a/js/src/xpconnect/src/xpcwrappednative.cpp b/js/src/xpconnect/src/xpcwrappednative.cpp index 905481851d49..8717ebeed4f5 100644 --- a/js/src/xpconnect/src/xpcwrappednative.cpp +++ b/js/src/xpconnect/src/xpcwrappednative.cpp @@ -415,7 +415,7 @@ XPCWrappedNative::GetNewOrUsed(XPCCallContext& ccx, // Gather scriptable create info if we are wrapping something // other than an nsIClassInfo object. We need to not do this for // nsIClassInfo objects because often nsIClassInfo implementations - // are also nsIXPCScriptable helper implmentations, but the helper + // are also nsIXPCScriptable helper implementations, but the helper // code is obviously intended for the implementation of the class // described by the nsIClassInfo, not for the class info object // itself. diff --git a/js/src/xpconnect/src/xpcwrappednativejsops.cpp b/js/src/xpconnect/src/xpcwrappednativejsops.cpp index c628cded40b5..7d9637d6bd26 100644 --- a/js/src/xpconnect/src/xpcwrappednativejsops.cpp +++ b/js/src/xpconnect/src/xpcwrappednativejsops.cpp @@ -190,7 +190,7 @@ XPC_WN_Shared_ToSource(JSContext *cx, JSObject *obj, // returning the underlying JSObject) so that JS callers will see what looks // Like any other xpcom object - and be limited to use its interfaces. // -// See the comment preceeding nsIXPCWrappedJSObjectGetter in nsIXPConnect.idl. +// See the comment preceding nsIXPCWrappedJSObjectGetter in nsIXPConnect.idl. static JSObject* GetDoubleWrappedJSObject(XPCCallContext& ccx, XPCWrappedNative* wrapper) diff --git a/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js b/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js index bc798d48ec64..68fbeba0dffa 100644 --- a/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js +++ b/js/src/xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js @@ -89,20 +89,20 @@ function test() testInstantiate(compInfo.name, compInfo.cid, compInfo.scriptable); testInstantiate(compInfo.name, compInfo.progid, compInfo.scriptable); } - // Test a non-existant COM object + // Test a nonexistent COM object var obj; try { - obj = COMObject("dwbnonexistantobject"); - printFailure("var obj = COMObject('dwbnonexistantobject'); did not throw an exception"); + obj = COMObject("dwbnonexistentobject"); + printFailure("var obj = COMObject('dwbnonexistentobject'); did not throw an exception"); } catch (e) { } try { - obj = COMObject("dwbnonexistantobject"); - printFailure("obj = COMObject('dwbnonexistantobject'); did not throw an exception"); + obj = COMObject("dwbnonexistentobject"); + printFailure("obj = COMObject('dwbnonexistentobject'); did not throw an exception"); } catch (e) { @@ -117,6 +117,6 @@ function test() } catch (e) { - reportFailure("Unhandled exception occured:" + e.toString()); + reportFailure("Unhandled exception occurred:" + e.toString()); } } diff --git a/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl b/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl index bfbea891ec71..6aaab427b3d4 100644 --- a/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl +++ b/js/src/xpconnect/tests/idispatch/Tests/jsDriver.pl @@ -168,7 +168,7 @@ sub execute_tests { } # Append the shell.js files to the shell_command if they're there. - # (only check for their existance if the suite or test_dir has changed + # (only check for their existence if the suite or test_dir has changed # since the last time we looked.) if ($last_suite ne $suite || $last_test_dir ne $test_dir) { $shell_command = &xp_path($engine_command); diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index cdd4c371e8c7..7f859b891c59 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -9143,7 +9143,7 @@ nsCSSFrameConstructor::RecreateFramesForContent(nsIContent* aContent, changeType = nsIAccessibilityService::FRAME_SHOW; } - // A significant enough change occured that this part + // A significant enough change occurred that this part // of the accessible tree is no longer valid. nsCOMPtr accService = do_GetService("@mozilla.org/accessibilityService;1"); diff --git a/layout/base/nsFrameManager.cpp b/layout/base/nsFrameManager.cpp index 2583dfc3db3f..dab4ff7bc7b3 100644 --- a/layout/base/nsFrameManager.cpp +++ b/layout/base/nsFrameManager.cpp @@ -1308,7 +1308,7 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext, if (fireAccessibilityEvents && mPresShell->IsAccessibilityActive() && aFrame->GetStyleVisibility()->IsVisible() != isVisible && !aFrame->GetPrevContinuation()) { - // A significant enough change occured that this part + // A significant enough change occurred that this part // of the accessible tree is no longer valid. Fire event for primary // frames only and if it wasn't fired for parent frame already. diff --git a/layout/base/nsPresContext.h b/layout/base/nsPresContext.h index 9f84fa7f5de9..c74c120a0a21 100644 --- a/layout/base/nsPresContext.h +++ b/layout/base/nsPresContext.h @@ -1121,7 +1121,7 @@ protected: // Do we currently have an event posted to call FlushUserFontSet? unsigned mPostedFlushUserFontSet : 1; - // resize reflow is supressed when the only change has been to zoom + // resize reflow is suppressed when the only change has been to zoom // the document rather than to change the document's dimensions unsigned mSupressResizeReflow : 1; diff --git a/layout/generic/nsIFrameUtil.h b/layout/generic/nsIFrameUtil.h index df411cc135a8..6e8b47c7c0e4 100644 --- a/layout/generic/nsIFrameUtil.h +++ b/layout/generic/nsIFrameUtil.h @@ -61,7 +61,7 @@ public: * returning. * aRegressionOutput will vary output, 0 is full output, 1 is brief */ - NS_IMETHOD CompareRegressionData(FILE* aFile1, FILE* aFile2,PRInt32 aRegressionOuput) = 0; + NS_IMETHOD CompareRegressionData(FILE* aFile1, FILE* aFile2,PRInt32 aRegressionOutput) = 0; /** * Display the regression dump data stored in aInputFile1 to diff --git a/layout/html/tests/block/bugs/5847.html b/layout/html/tests/block/bugs/5847.html index 2869c5dedd25..b8af806facda 100644 --- a/layout/html/tests/block/bugs/5847.html +++ b/layout/html/tests/block/bugs/5847.html @@ -1,6 +1,6 @@ - + diff --git a/layout/mathml/nsMathMLChar.cpp b/layout/mathml/nsMathMLChar.cpp index 8d039b7a8a0f..c833912ee48e 100644 --- a/layout/mathml/nsMathMLChar.cpp +++ b/layout/mathml/nsMathMLChar.cpp @@ -397,7 +397,7 @@ nsGlyphTable::ElementAt(nsPresContext* aPresContext, nsMathMLChar* aChar, PRUint font = value[i] - '0'; ++i; if (font >= mFontName.Length()) { - NS_ERROR("Non-existant font referenced in glyph table"); + NS_ERROR("Nonexistent font referenced in glyph table"); return kNullGlyph; } // The char cannot be handled if this font is not installed diff --git a/layout/svg/base/src/nsISVGChildFrame.h b/layout/svg/base/src/nsISVGChildFrame.h index 096054b619c6..01b4ae62dcd1 100644 --- a/layout/svg/base/src/nsISVGChildFrame.h +++ b/layout/svg/base/src/nsISVGChildFrame.h @@ -98,7 +98,7 @@ public: /** * Get this frame's contribution to the rect returned by a GetBBox() call - * that occured either on this element, or on one of its ancestors. + * that occurred either on this element, or on one of its ancestors. * * SVG defines an element's bbox to be the element's fill bounds in the * userspace established by that element. By allowing callers to pass in the diff --git a/layout/svg/base/src/nsSVGEffects.h b/layout/svg/base/src/nsSVGEffects.h index b091319ad0fa..654aae80eb17 100644 --- a/layout/svg/base/src/nsSVGEffects.h +++ b/layout/svg/base/src/nsSVGEffects.h @@ -306,7 +306,7 @@ public: * encounters a non-container SVG node) invalidating all mutation observers * (not just nsSVGRenderingObservers) on all nodes along the way (not just * the first node it finds with observers). In other words, by doing all the - * things in parentheses in the preceeding sentence, this method uses + * things in parentheses in the preceding sentence, this method uses * knowledge about our implementation and what can be affected by SVG effects * to make invalidation relatively lightweight when an SVG effect changes. */ diff --git a/layout/svg/crashtests/326495-1.svg b/layout/svg/crashtests/326495-1.svg index 30e34c0c08b0..4748e31578ca 100644 --- a/layout/svg/crashtests/326495-1.svg +++ b/layout/svg/crashtests/326495-1.svg @@ -12,5 +12,5 @@ window.addEventListener("load", init, false); - + diff --git a/layout/tools/reftest/reftest-analyzer.xhtml b/layout/tools/reftest/reftest-analyzer.xhtml index 86359e22bacf..03510c245fe6 100644 --- a/layout/tools/reftest/reftest-analyzer.xhtml +++ b/layout/tools/reftest/reftest-analyzer.xhtml @@ -38,7 +38,7 @@ +

PO Box 1234 1232 Main St. diff --git a/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl b/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl index 81cc710f1924..73da967f8021 100644 --- a/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl +++ b/toolkit/components/parentalcontrols/public/nsIParentalControlsService.idl @@ -96,7 +96,7 @@ interface nsIParentalControlsService : nsISupports * was blocked. * @param aSource The URI source of the subject content. * @param aTarget The location the content was saved to if - * no blocking occured. + * no blocking occurred. */ void log(in short aEntryType, in boolean aFlag, in nsIURI aSource, [optional] in nsIFile aTarget); }; diff --git a/toolkit/components/passwordmgr/test/test_bug_221634.html b/toolkit/components/passwordmgr/test/test_bug_221634.html index eb5646b5a9f0..6227568a7752 100644 --- a/toolkit/components/passwordmgr/test/test_bug_221634.html +++ b/toolkit/components/passwordmgr/test/test_bug_221634.html @@ -51,7 +51,7 @@ function contentLoaded() { // Set a 0-second timeout, which should execute before the pageload event. // setTimeout(reallyDoTest, 0); // ha-ha... That doesn't work. The pageload event comes first, although - // it can be hacked into working by adding + // it can be hacked into working by adding dclHappened = true; } diff --git a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js index 884b63fed81b..77e6d0ea27cf 100644 --- a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js +++ b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_1.js @@ -54,7 +54,7 @@ if (exists) { do_check_false(exists); // fail on purpose } -testdesc = "Initialize with a non-existant data file"; +testdesc = "Initialize with a non-existent data file"; storage = LoginTest.initStorage(OUTDIR, filename); diff --git a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js index 5a1c7e836303..17eb771c5007 100644 --- a/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js +++ b/toolkit/components/passwordmgr/test/unit/test_storage_legacy_2.js @@ -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-existant-file-"+Math.floor(Math.random() * 10000); +var filename="non-existent-file-"+Math.floor(Math.random() * 10000); var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); file.initWithPath(OUTDIR); file.append(filename); diff --git a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js index 1b2360231586..5342ff8f33bf 100644 --- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js +++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_1.js @@ -56,7 +56,7 @@ file.append(filename); if(file.exists()) file.remove(false); -testdesc = "Initialize with a non-existant data file"; +testdesc = "Initialize with a non-existent 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-existant login +// Try modifying a non-existent login var err = null; try { storage.modifyLogin(testuser2, testuser1); diff --git a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js index ab7c7103615a..98a01b952bc5 100644 --- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js +++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_2.js @@ -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-existant-file-pwmgr.sqlite"; +var filename="non-existent-file-pwmgr.sqlite"; var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); file.initWithPath(OUTDIR); file.append(filename); diff --git a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js index e52da7961227..983baf2102ca 100644 --- a/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js +++ b/toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_7.js @@ -100,7 +100,7 @@ try { } catch (e) { error = e; } -LoginTest.checkExpectedError(/Unexpected field/, error, "nonexistant field should throw"); +LoginTest.checkExpectedError(/Unexpected field/, error, "nonexistent field should throw"); LoginTest.deleteFile(OUTDIR, "output-searchLogins-1.sqlite"); diff --git a/toolkit/components/places/public/nsINavHistoryService.idl b/toolkit/components/places/public/nsINavHistoryService.idl index a3a0e23f2f8c..586f96218fca 100644 --- a/toolkit/components/places/public/nsINavHistoryService.idl +++ b/toolkit/components/places/public/nsINavHistoryService.idl @@ -1008,9 +1008,9 @@ interface nsINavHistoryQuery : nsISupports readonly attribute boolean hasUri; /** - * Test for existance or non-existance of a given annotation. We don't + * Test for existence or non-existence of a given annotation. We don't * currently support >1 annotation name per query. If 'annotationIsNot' is - * true, we test for the non-existance of the specified annotation. + * true, we test for the non-existence of the specified annotation. * * Testing for not annotation will do the same thing as a normal query and * remove everything that doesn't have that annotation. Asking for things diff --git a/toolkit/components/places/src/Helpers.cpp b/toolkit/components/places/src/Helpers.cpp index 1cd2f00497a0..d1add306ea6c 100644 --- a/toolkit/components/places/src/Helpers.cpp +++ b/toolkit/components/places/src/Helpers.cpp @@ -59,7 +59,7 @@ AsyncStatementCallback::HandleError(mozIStorageError *aError) NS_ENSURE_SUCCESS(rv, rv); nsCAutoString warnMsg; - warnMsg.Append("An error occured while executing an async statement: "); + warnMsg.Append("An error occurred while executing an async statement: "); warnMsg.Append(result); warnMsg.Append(" "); warnMsg.Append(message); diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp index cebf685d51df..8ca5a3caceda 100644 --- a/toolkit/components/places/src/nsNavHistory.cpp +++ b/toolkit/components/places/src/nsNavHistory.cpp @@ -7329,7 +7329,7 @@ nsNavHistory::AddPageWithVisits(nsIURI *aURI, NS_ENSURE_SUCCESS(rv, rv); } - NS_ASSERTION(placeId != 0, "Cannot add a visit to a not existant page"); + NS_ASSERTION(placeId != 0, "Cannot add a visit to a nonexistent page"); if (aFirstVisitDate != -1) { // Add the first visit diff --git a/toolkit/components/places/src/nsPlacesImportExportService.cpp b/toolkit/components/places/src/nsPlacesImportExportService.cpp index b789e5e5906f..192d389ec5f4 100644 --- a/toolkit/components/places/src/nsPlacesImportExportService.cpp +++ b/toolkit/components/places/src/nsPlacesImportExportService.cpp @@ -200,7 +200,7 @@ public: // to see what the text content of that node should be. nsString mPreviousText; - // true when we hit a

, which contains the description for the preceeding + // true when we hit a
, which contains the description for the preceding // tag. We can't just check for
like we can for or // because if there is a sub-folder, it is actually a child of the
// because the tag is never explicitly closed. If this is true and we see a diff --git a/toolkit/components/places/tests/unit/test_history_sidebar.js b/toolkit/components/places/tests/unit/test_history_sidebar.js index fed27fed9cb3..b3b3a362d420 100644 --- a/toolkit/components/places/tests/unit/test_history_sidebar.js +++ b/toolkit/components/places/tests/unit/test_history_sidebar.js @@ -85,7 +85,7 @@ function add_normalized_visit(aURI, aTime, aDayOffset) { function days_for_x_months_ago(aNowObj, aMonths) { var oldTime = new Date(); // Set day before month, otherwise we could try to calculate 30 February, or - // other not existant days. + // other nonexistent days. oldTime.setDate(1); oldTime.setMonth(aNowObj.getMonth() - aMonths); oldTime.setHours(0); diff --git a/toolkit/components/places/tests/unit/test_isvisited.js b/toolkit/components/places/tests/unit/test_isvisited.js index a0dcf0f16cda..e969eb76a5d0 100644 --- a/toolkit/components/places/tests/unit/test_isvisited.js +++ b/toolkit/components/places/tests/unit/test_isvisited.js @@ -72,7 +72,7 @@ function run_test() { add_uri_to_history(uri3); do_check_true(gh.isVisited(uri3)); - // check if a non-existant uri is visited + // check if a non-existent uri is visited var uri4 = uri("http://foobarcheese.com"); do_check_false(gh.isVisited(uri4)); diff --git a/toolkit/components/places/tests/unit/test_preventive_maintenance.js b/toolkit/components/places/tests/unit/test_preventive_maintenance.js index 9188248b7876..2bbb146b5f4b 100644 --- a/toolkit/components/places/tests/unit/test_preventive_maintenance.js +++ b/toolkit/components/places/tests/unit/test_preventive_maintenance.js @@ -194,7 +194,7 @@ tests.push({ stmt.params['anno'] = this._usedPageAttribute; stmt.execute(); stmt.finalize(); - // Add an annotation with a not existant attribute + // Add an annotation with a nonexisting 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 not existant page + // Add an annotation to a nonexisting 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 annotation to a not existant page has been removed + // Check that an annotation to a nonexisting 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 not existant keyword + // Add a bookmark using a nonexisting 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 not existant attribute + // Add an annotation with a nonexisting 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 not existant item + // Add an annotation to a nonexisting 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 annotation to a not existant page has been removed + // Check that an annotation to a nonexisting 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 not existant favicon entry + // Insert a place using a nonexisting favicon entry this._invalidIconPlaceId = addPlace("http://www2.mozilla.org", 1337); }, diff --git a/toolkit/components/printing/content/printPreviewProgress.js b/toolkit/components/printing/content/printPreviewProgress.js index 5cc1ad128674..7c92958bb85c 100644 --- a/toolkit/components/printing/content/printPreviewProgress.js +++ b/toolkit/components/printing/content/printPreviewProgress.js @@ -50,7 +50,7 @@ var docTitle = ""; var docURL = ""; var progressParams = null; -function elipseString(aStr, doFront) +function ellipseString(aStr, doFront) { if (aStr.length > 3 && (aStr.substr(0, 3) == "..." || aStr.substr(aStr.length-4, 3) == "...")) return aStr; @@ -78,12 +78,12 @@ var progressListener = { { if (!progressParams) return; - var docTitleStr = elipseString(progressParams.docTitle, false); + var docTitleStr = ellipseString(progressParams.docTitle, false); if (docTitleStr != docTitle) { docTitle = docTitleStr; dialog.title.value = docTitle; } - var docURLStr = elipseString(progressParams.docURL, true); + var docURLStr = ellipseString(progressParams.docURL, true); if (docURLStr != docURL && dialog.title != null) { docURL = docURLStr; if (docTitle == "") @@ -114,8 +114,8 @@ function onLoad() { if (window.arguments[1]) { progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams) if (progressParams) { - docTitle = elipseString(progressParams.docTitle, false); - docURL = elipseString(progressParams.docURL, true); + docTitle = ellipseString(progressParams.docTitle, false); + docURL = ellipseString(progressParams.docURL, true); } } diff --git a/toolkit/components/printing/content/printProgress.js b/toolkit/components/printing/content/printProgress.js index 935f364b8bbd..87046b5364b7 100644 --- a/toolkit/components/printing/content/printProgress.js +++ b/toolkit/components/printing/content/printProgress.js @@ -53,7 +53,7 @@ var docURL = ""; var progressParams = null; var switchUI = true; -function elipseString(aStr, doFront) +function ellipseString(aStr, doFront) { if (aStr.length > 3 && (aStr.substr(0, 3) == "..." || aStr.substr(aStr.length-4, 3) == "...")) { return aStr; @@ -139,7 +139,7 @@ var progressListener = { if (progressParams) { - var docTitleStr = elipseString(progressParams.docTitle, false); + var docTitleStr = ellipseString(progressParams.docTitle, false); if (docTitleStr != docTitle) { docTitle = docTitleStr; dialog.title.value = docTitle; @@ -148,7 +148,7 @@ var progressListener = { if (docURLStr != docURL && dialog.title != null) { docURL = docURLStr; if (docTitle == "") { - dialog.title.value = elipseString(docURLStr, true); + dialog.title.value = ellipseString(docURLStr, true); } } } @@ -248,8 +248,8 @@ function onLoad() { progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams) if (progressParams) { - docTitle = elipseString(progressParams.docTitle, false); - docURL = elipseString(progressParams.docURL, true); + docTitle = ellipseString(progressParams.docTitle, false); + docURL = ellipseString(progressParams.docURL, true); } } diff --git a/toolkit/components/satchel/test/unit/test_history_api.js b/toolkit/components/satchel/test/unit/test_history_api.js index ed35829578a5..8b2a273a26cf 100644 --- a/toolkit/components/satchel/test/unit/test_history_api.js +++ b/toolkit/components/satchel/test/unit/test_history_api.js @@ -74,7 +74,7 @@ function run_test() // time-A/B/C/D checked below. // ===== 2 ===== - // Test looking for non-existant / bogus data. + // Test looking for non-existent / bogus data. testnum++; do_check_false(fh.nameExists("blah")); do_check_false(fh.nameExists("")); diff --git a/toolkit/components/url-classifier/content/moz/preferences.js b/toolkit/components/url-classifier/content/moz/preferences.js index bf85ca3e0344..69ab7be3d175 100644 --- a/toolkit/components/url-classifier/content/moz/preferences.js +++ b/toolkit/components/url-classifier/content/moz/preferences.js @@ -203,7 +203,7 @@ G_Preferences.prototype.addObserver = function(which, callback) { */ G_Preferences.prototype.removeObserver = function(which, callback) { var ix = this.observers_[which].callbacks.indexOf(callback); - G_Assert(this, ix != -1, "Tried to unregister a nonexistant observer"); + G_Assert(this, ix != -1, "Tried to unregister a nonexistent observer"); this.observers_[which].callbacks.splice(ix, 1); var observer = this.observers_[which].observers.splice(ix, 1)[0]; this.prefs_.removeObserver(which, observer); diff --git a/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp b/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp index 46660d3b78fb..593ab7c9c5e7 100644 --- a/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp +++ b/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp @@ -3029,7 +3029,7 @@ nsUrlClassifierDBServiceWorker::BeginStream(const nsACString &table, /** * Updating the database: * - * The Update() method takes a series of chunks seperated with control data, + * The Update() method takes a series of chunks separated with control data, * as described in * http://code.google.com/p/google-safe-browsing/wiki/Protocolv2Spec * diff --git a/toolkit/content/tests/widgets/popup_shared.js b/toolkit/content/tests/widgets/popup_shared.js index 0325912a03e3..a2845c88cb6a 100644 --- a/toolkit/content/tests/widgets/popup_shared.js +++ b/toolkit/content/tests/widgets/popup_shared.js @@ -38,16 +38,16 @@ var gWindowUtils; function startPopupTests(tests) { - document.addEventListener("popupshowing", eventOccured, false); - document.addEventListener("popupshown", eventOccured, false); - document.addEventListener("popuphiding", eventOccured, false); - document.addEventListener("popuphidden", eventOccured, false); - document.addEventListener("command", eventOccured, false); - document.addEventListener("DOMMenuItemActive", eventOccured, false); - document.addEventListener("DOMMenuItemInactive", eventOccured, false); - document.addEventListener("DOMMenuInactive", eventOccured, false); - document.addEventListener("DOMMenuBarActive", eventOccured, false); - document.addEventListener("DOMMenuBarInactive", eventOccured, false); + document.addEventListener("popupshowing", eventOccurred, false); + document.addEventListener("popupshown", eventOccurred, false); + document.addEventListener("popuphiding", eventOccurred, false); + document.addEventListener("popuphidden", eventOccurred, false); + document.addEventListener("command", eventOccurred, false); + document.addEventListener("DOMMenuItemActive", eventOccurred, false); + document.addEventListener("DOMMenuItemInactive", eventOccurred, false); + document.addEventListener("DOMMenuInactive", eventOccurred, false); + document.addEventListener("DOMMenuBarActive", eventOccurred, false); + document.addEventListener("DOMMenuBarInactive", eventOccurred, false); gPopupTests = tests; gWindowUtils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) @@ -87,7 +87,7 @@ function disableNonTestMouse(aDisable) { gWindowUtils.disableNonTestMouseEvents(aDisable); } -function eventOccured(event) +function eventOccurred(event) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); diff --git a/toolkit/content/tests/widgets/test_datepicker.xul b/toolkit/content/tests/widgets/test_datepicker.xul index 491155e0df98..a336e5fa1624 100644 --- a/toolkit/content/tests/widgets/test_datepicker.xul +++ b/toolkit/content/tests/widgets/test_datepicker.xul @@ -259,8 +259,8 @@ function testtag_datepicker_UI_grid(dp, type, testid) testid + "key page down read only"); dp.readOnly = false; - synthesizeKeyExpectEvent("VK_LEFT", { }, ktarget, "change", testid + "key left changable again"); - is(dp.value, "2003-02-14", testid + "key left changable again"); + synthesizeKeyExpectEvent("VK_LEFT", { }, ktarget, "change", testid + "key left changeable again"); + is(dp.value, "2003-02-14", testid + "key left changeable again"); // the value of a disabled datepicker cannot be changed dp.disabled = true; diff --git a/toolkit/content/tests/widgets/test_focus_anons.xul b/toolkit/content/tests/widgets/test_focus_anons.xul index 641957f8f4f0..9fe14995a9c4 100644 --- a/toolkit/content/tests/widgets/test_focus_anons.xul +++ b/toolkit/content/tests/widgets/test_focus_anons.xul @@ -31,20 +31,20 @@ var gBlurs = 0, gFocuses = 0; var gExpectedBlur = ""; var gExpectedFocus = ""; -function blurOccured(event) { +function blurOccurred(event) { gBlurs++; is(event.originalTarget, gExpectedBlur, "blur " + gBlurs + "," + event.originalTarget.localName); } -function focusOccured(event) { +function focusOccurred(event) { gFocuses++; is(event.originalTarget, gExpectedFocus, "focus " + gFocuses + "," + event.originalTarget.localName); } function runTests() { - addEventListener("focus", focusOccured, true); - addEventListener("blur", blurOccured, true); + addEventListener("focus", focusOccurred, true); + addEventListener("blur", blurOccurred, true); gExpectedBlur = null; gExpectedFocus = $("menulist").inputField; diff --git a/toolkit/content/tests/widgets/test_menulist_null_value.xul b/toolkit/content/tests/widgets/test_menulist_null_value.xul index 7d39131395a5..eebba8de4e54 100644 --- a/toolkit/content/tests/widgets/test_menulist_null_value.xul +++ b/toolkit/content/tests/widgets/test_menulist_null_value.xul @@ -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-existant item"); + is(list.getAttribute("label"), "", "Check that the list label is empty after selecting a non-existent item"); SimpleTest.finish(); } diff --git a/toolkit/content/tests/widgets/test_popup_coords.xul b/toolkit/content/tests/widgets/test_popup_coords.xul index 87d76c4a0d85..ea66cffce5a7 100644 --- a/toolkit/content/tests/widgets/test_popup_coords.xul +++ b/toolkit/content/tests/widgets/test_popup_coords.xul @@ -17,20 +17,20 @@ + onpopupshowing="popupShowingEventOccurred(event);" + onpopupshown="eventOccurred(event); openThePopup('inner')" + onpopuphiding="eventOccurred(event);" + onpopuphidden="eventOccurred(event); SimpleTest.finish();">