Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: test/mjsunit/regress/regress-319722-TypedArrays.js

Issue 115013003: Merged r17800, r17801 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Fix new line Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-319722-ArrayBuffer.js ('k') | test/mjsunit/regress/regress-crbug-319835.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-319722-TypedArrays.js
diff --git a/test/intl/date-format/utils.js b/test/mjsunit/regress/regress-319722-TypedArrays.js
similarity index 80%
copy from test/intl/date-format/utils.js
copy to test/mjsunit/regress/regress-319722-TypedArrays.js
index 535de15e9a2b4298cfc13d080b9fe620588f5b8e..0469686021ea62aa44fb5b2aa607d1e6c0a3fb5f 100644
--- a/test/intl/date-format/utils.js
+++ b/test/mjsunit/regress/regress-319722-TypedArrays.js
@@ -25,12 +25,20 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Utility methods for date testing.
-
-/**
- * Returns date with timezone info forced into PDT.
- */
-function usePDT(dateString) {
- var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007');
- return removedTZ.replace(/\(.*?\)/, '(PDT)');
+// Flags: --nostress-opt --allow-natives-syntax
+var maxSize = %MaxSmi() + 1;
+function TestArray(constr) {
+ assertThrows(function() {
+ new constr(maxSize);
+ }, RangeError);
}
+
+TestArray(Uint8Array);
+TestArray(Int8Array);
+TestArray(Uint16Array);
+TestArray(Int16Array);
+TestArray(Uint32Array);
+TestArray(Int32Array);
+TestArray(Float32Array);
+TestArray(Float64Array);
+TestArray(Uint8ClampedArray);
« no previous file with comments | « test/mjsunit/regress/regress-319722-ArrayBuffer.js ('k') | test/mjsunit/regress/regress-crbug-319835.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698