mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 506041 - Correct misspellings in source code (Patch 3)
r=timeless --HG-- extra : rebase_source : 1917c999a5865676ffb7ec3c2834c3e091bb64dc
This commit is contained in:
parent
490806495b
commit
10548f19c5
@ -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
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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],
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user