Fix {get,set}ter-on-elements tests to run through all creation functions

setter-on-elements had the wrong length hardcoded in a for loop over the
creation functions (getter-on-elements had the right length, but seemed
worth future-proofing).

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/643143005

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24813 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
adamk@chromium.org 2014-10-22 17:21:53 +00:00
parent 5a1774268a
commit 04db7c8793
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ var cf = [create_func_smi,
create_func_double,
create_func_fast];
for(var c = 0; c < 3; c++) {
for(var c = 0; c < cf.length; c++) {
base_getter_test(cf[c]);
}

View File

@ -191,8 +191,8 @@ var cf = [create_func_smi,
var values = [3, 3.5, true];
for(var c = 0; c < 3; c++) {
for(var s = 0; s < 3; s++) {
for(var c = 0; c < cf.length; c++) {
for(var s = 0; s < values.length; s++) {
base_setter_test(cf[c], 0, values[s]);
base_setter_test(cf[c], 1, values[s]);
}