зеркало из https://github.com/mozilla/pjs.git
*** empty log message ***
This commit is contained in:
Родитель
03be1cf470
Коммит
7cd5f5c401
|
@ -53,6 +53,6 @@ try {
|
|||
|
||||
AddTestCase("accessing private static method outside of the class, RTE #1069",
|
||||
"ReferenceError: Error #1069",
|
||||
error);
|
||||
error.substr(0,27));
|
||||
|
||||
test();
|
||||
|
|
|
@ -55,7 +55,7 @@ try {
|
|||
|
||||
AddTestCase("accessing public static method outside of the class, RTE #1069",
|
||||
"ReferenceError: Error #1069",
|
||||
error);
|
||||
error.substr(0,27));
|
||||
// print( "FAILED, should give run time error : accessing public static method outside of the class" );
|
||||
|
||||
test();
|
||||
|
|
|
@ -53,7 +53,7 @@ try {
|
|||
|
||||
AddTestCase("Override Method At Runtime",
|
||||
"ReferenceError: Error #1037",
|
||||
error);
|
||||
error.substr(0,27));
|
||||
|
||||
test();
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ var ATTRS = new Attrs();
|
|||
AddTestCase("var, empty :", "var, empty ", ATTRS.emptyVar);
|
||||
AddTestCase("var, public :", "var, public ", ATTRS.pubVar);
|
||||
var privateVarErr="no error"; try { ATTRS.privVar } catch (e) { privateVarErr=e.toString(); }
|
||||
AddTestCase("var, private :", "ReferenceError: Error #1069", privateVarErr);
|
||||
AddTestCase("var, private :", "ReferenceError: Error #1069", privateVarErr.substr(0,27));
|
||||
//AddTestCase("var, private :", "var, private ", ATTRS.privVar);
|
||||
AddTestCase("var, static :", "var, static ", ATTRS.getStatVar());
|
||||
AddTestCase("var, public static :", "var, public static ", ATTRS.getPubStatVar());
|
||||
|
@ -57,7 +57,7 @@ AddTestCase("var, static private:", "var, static private", ATTRS.getStatPrivVar(
|
|||
AddTestCase("func, empty :", "func, empty ", ATTRS.emptyFunc());
|
||||
AddTestCase("func, public :", "func, public ", ATTRS.pubFunc());
|
||||
var privFunc="no error"; try { ATTRS.privFunc(); } catch (e) { privFunc=e.toString(); }
|
||||
AddTestCase("func, private :", "ReferenceError: Error #1069", privateVarErr);
|
||||
AddTestCase("func, private :", "ReferenceError: Error #1069", privateVarErr.substr(0,27));
|
||||
//AddTestCase("func, private :", "func, private ", ATTRS.privFunc());
|
||||
AddTestCase("func, static :", "func, static ", ATTRS.getStatFunc());
|
||||
AddTestCase("func, public static :", "func, public static ", ATTRS.getPubStatFunc());
|
||||
|
|
Загрузка…
Ссылка в новой задаче