mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Toolkit tests that fail in js strict mode.
Bug 524781 - xpcshell-tests: turn on strict & werror by default. r=benjamin.
This commit is contained in:
parent
54d73947c5
commit
b968ecbab9
@ -41,7 +41,7 @@ const Ci = Components.interfaces;
|
||||
|
||||
// main
|
||||
function run_test() {
|
||||
var result = Cc["@mozilla.org/autocomplete/simple-result;1"].
|
||||
createInstance(Ci.nsIAutoCompleteSimpleResult);
|
||||
do_check_eq(result.searchStatus, Ci.nsIAutoCompleteSimpleResult.STATUS_NONE);
|
||||
var result = Cc["@mozilla.org/autocomplete/controller;1"].
|
||||
createInstance(Ci.nsIAutoCompleteController);
|
||||
do_check_eq(result.searchStatus, Ci.nsIAutoCompleteController.STATUS_NONE);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ function run_test()
|
||||
function newFileInDirectory(dir) {
|
||||
let file = dir.clone();
|
||||
file.append("testfile" + Math.floor(Math.random() * 10000));
|
||||
file.createUnique(Ci.nsIFile.DIRECTORY_FILE, 0600);
|
||||
file.createUnique(Ci.nsIFile.DIRECTORY_TYPE, 0600);
|
||||
return file;
|
||||
}
|
||||
let dir1 = newDirectory();
|
||||
|
@ -183,7 +183,7 @@ function run_test()
|
||||
function newFileInDirectory(dir) {
|
||||
let file = dir.clone();
|
||||
file.append("testfile" + Math.floor(Math.random() * 10000));
|
||||
file.createUnique(Ci.nsIFile.DIRECTORY_FILE, 0600);
|
||||
file.createUnique(Ci.nsIFile.DIRECTORY_TYPE, 0600);
|
||||
return file;
|
||||
}
|
||||
let dir1 = newDirectory();
|
||||
|
@ -2821,7 +2821,7 @@ ExtensionManager.prototype = {
|
||||
var principal = zipReader.getCertificatePrincipal(null);
|
||||
if (principal && principal.hasCertificate) {
|
||||
if (verifyZipSigning(zipReader, principal)) {
|
||||
x509 = principal.certificate;
|
||||
var x509 = principal.certificate;
|
||||
if (x509 instanceof Ci.nsIX509Cert && x509.commonName.length > 0)
|
||||
prettyName = x509.commonName;
|
||||
else
|
||||
@ -4900,7 +4900,7 @@ ExtensionManager.prototype = {
|
||||
if (updateType > MAX_PUBLIC_UPDATE_WHEN)
|
||||
throw Cr.NS_ERROR_ILLEGAL_VALUE;
|
||||
|
||||
for (i = 0; i < itemCount; ++i) {
|
||||
for (var i = 0; i < itemCount; ++i) {
|
||||
var currItem = items[i];
|
||||
if (!currItem)
|
||||
throw Cr.NS_ERROR_ILLEGAL_VALUE;
|
||||
|
@ -130,6 +130,7 @@ function run_test_pt4() {
|
||||
}
|
||||
|
||||
function check_test_pt4() {
|
||||
var abi;
|
||||
try {
|
||||
abi = gAppInfo.XPCOMABI;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user