Bug 506041 - Correct misspellings in source code (Patch 3)

r=timeless

--HG--
extra : rebase_source : 1917c999a5865676ffb7ec3c2834c3e091bb64dc
This commit is contained in:
Michael Kohler 2010-07-07 15:33:52 +02:00
parent 490806495b
commit 10548f19c5
11 changed files with 14 additions and 14 deletions

View File

@ -47,7 +47,7 @@
$found = 1;
# GLOBALS
$SEP = 0; # the paltform independent path separator
$SEP = 0; # the platform independent path separator
$CFG = 0; # the value of the -cfg flag
# determine the path separator

View File

@ -262,7 +262,7 @@ try {
} catch(ex) {
didThrow = true;
}
// Once this test passes, we shoud test that onerror gets called and
// Once this test passes, we should 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 nonexistent file, should fire error instead");

View File

@ -140,11 +140,11 @@ function go() {
checkGetAttachedShaders([fs], [], [fs], "attaching a single shader should give the expected list");
checkGetAttachedShaders([fs, vs, fs2, vs2], [], [fs, vs, fs2, vs2],
"attaching some shaders should give the expected list");
checkGetAttachedShaders([fs], [fs], [], "attaching a shader and detaching it shoud leave an empty list");
checkGetAttachedShaders([fs], [fs], [], "attaching a shader and detaching it should leave an empty list");
checkGetAttachedShaders([fs, vs, fs2, vs2], [fs, vs, fs2, vs2], [],
"attaching some shaders and detaching them in same order shoud leave an empty list");
"attaching some shaders and detaching them in same order should leave an empty list");
checkGetAttachedShaders([fs, vs, fs2, vs2], [fs, vs2, vs, fs2], [],
"attaching some shaders and detaching them in random order shoud leave an empty list");
"attaching some shaders and detaching them in random order should leave an empty list");
checkGetAttachedShaders([fs, vs, fs2, vs2], [vs], [fs, fs2, vs2],
"attaching and detaching some shaders should leave the difference list");
checkGetAttachedShaders([fs, vs, fs2, vs2], [fs, vs2], [vs, fs2],

View File

@ -116,7 +116,7 @@ function checkHtmlForIDLAttribute(element)
// DOMSettableTokenList is tested in another bug so we just test assignation
element.htmlFor.value = 'a b c';
is(element.htmlFor, 'a b c', "htmlFor shoud have changed");
is(element.htmlFor, 'a b c', "htmlFor should have changed");
}
function submitForm()

View File

@ -81,7 +81,7 @@ interface nsISHistoryInternal: nsISupports
/**
* Replace the nsISHEntry at a particular index
* @param aIndex - The index at which the entry shoud be replaced
* @param aIndex - The index at which the entry should be replaced
* @param aReplaceEntry - The replacement entry for the index.
*/
void replaceEntry(in long aIndex, in nsISHEntry aReplaceEntry);

View File

@ -81,13 +81,13 @@ struct ParamTraits<mozilla::plugins::NPRemoteEvent>
// set to a pointer to a LOGFONT structure.
switch (paramCopy.event.event) {
case WM_WINDOWPOSCHANGED:
// The lParam paramter of WM_WINDOWPOSCHANGED holds a pointer to
// The lParam parameter of WM_WINDOWPOSCHANGED holds a pointer to
// a WINDOWPOS structure that contains information about the
// window's new size and position
paramCopy.lParamData.windowpos = *(reinterpret_cast<WINDOWPOS*>(paramCopy.event.lParam));
break;
case WM_PAINT:
// The lParam paramter of WM_PAINT holds a pointer to an RECT
// The lParam parameter of WM_PAINT holds a pointer to an RECT
// structure specifying the bounding box of the update area.
paramCopy.lParamData.rect = *(reinterpret_cast<RECT*>(paramCopy.event.lParam));
break;

View File

@ -65,7 +65,7 @@ function test()
{
actual = e + ': 1';
}
catch (e) /* two non-guarded catch statements shoud generate an error */
catch (e) /* two non-guarded catch statements should generate an error */
{
actual = e + ': 2';
}

View File

@ -27,7 +27,7 @@ function test()
document.documentElement.addEventListener("click", function(){ var foo = window; }, false);
}
test();
ok(true, "Shoudn't leak");
ok(true, "Shouldn't leak");
</script>
</pre>

View File

@ -829,7 +829,7 @@ nsStyleContext*
nsMathMLChar::GetStyleContext() const
{
NS_ASSERTION(!mParent, "invalid call - not allowed for child chars");
NS_ASSERTION(mStyleContext, "chars shoud always have style context");
NS_ASSERTION(mStyleContext, "chars should always have style context");
return mStyleContext;
return NS_OK;
}

View File

@ -1963,7 +1963,7 @@ var PlacesUtils = {
}
};
// Get list of itemIds that must be exluded from the backup.
// Get list of itemIds that must be excluded from the backup.
let excludeItems =
PlacesUtils.annotations.getItemsWithAnnotation(PlacesUtils.EXCLUDE_FROM_BACKUP_ANNO);

View File

@ -311,7 +311,7 @@ nsOSHelperAppService::typeFromExtEquals(const PRUnichar* aExt, const char *aType
return eq;
}
// Strip a handler command string of it's quotes and paramters.
// Strip a handler command string of its quotes and parameters.
static void CleanupHandlerPath(nsString& aPath)
{
// Example command strings passed into this routine: