Revision: 4498
Author: metaweta
Date: Fri Jun 10 13:58:43 2011
Log: Disables Array.slice(null/undef) test until Domita runs on ES5/3
http://codereview.appspot.com/4576054
Disables Array.slice(null/undef) test until Domita runs on ES5/3
R=jasvir
http://code.google.com/p/google-caja/source/detail?r=4498
Modified:
/trunk/tests/com/google/caja/plugin/domita_test_untrusted.html
=======================================
--- /trunk/tests/com/google/caja/plugin/domita_test_untrusted.html Fri May
6 13:38:34 2011
+++ /trunk/tests/com/google/caja/plugin/domita_test_untrusted.html Fri Jun
10 13:58:43 2011
@@ -1950,8 +1950,11 @@
// These cases are critical, because they affect the correctness of
// valija's fn.apply() implementation. IE is the problem case, because
// it throws an error when you Array.prototype.slice.call(null).
- assertArray([], Array.slice(null), 'null');
- assertArray([], Array.slice(void 0), 'void 0');
+ // ES5 says Array.slice(null) and Array.slice(undefined) should
+ // throw an error. Commenting these out until we move domita tests to
+ // ES5/3
+ // assertThrows(function(){Array.slice(null)});
+ // assertThrows(function(){Array.slice(void 0)});
// These are expected behavior that work fine on all browsers.
assertArray([9], Array.slice([9]), '([9])');