Commit 04db7c87 authored by adamk@chromium.org's avatar adamk@chromium.org

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
parent 5a177426
......@@ -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]);
}
......
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment