Index: testing/resources/javascript/document_props.in |
diff --git a/testing/resources/javascript/document_props.in b/testing/resources/javascript/document_props.in |
index 8ab7e3d56668700a2f7933f7f960040fed6101d5..c628fafad2c5a4f28462d604806a2da9e38991d7 100644 |
--- a/testing/resources/javascript/document_props.in |
+++ b/testing/resources/javascript/document_props.in |
@@ -105,27 +105,27 @@ var document_props = [ |
]; |
function testGetProps(props) { |
- try { |
- app.alert('*** Getting properties ***'); |
- for (var i = 0; i < props.length; ++i) { |
- var expr1 = "this." + props[i]; |
- var expr2 = "typeof " + expr1; |
- app.alert(expr1 + " is " + eval(expr2) + ' ' + eval(expr1)); |
+ app.alert('*** Getting properties ***'); |
+ for (var i = 0; i < props.length; ++i) { |
+ try { |
+ var expr1 = "this." + props[i]; |
+ var expr2 = "typeof " + expr1; |
+ app.alert(expr1 + " is " + eval(expr2) + ' ' + eval(expr1)); |
+ } catch (e) { |
+ app.alert("ERROR: " + e.toString()); |
} |
- } catch (e) { |
- app.alert("ERROR: " + e.toString()); |
} |
} |
function testSetProps(props) { |
- try { |
- app.alert('*** Setting properties ***'); |
- for (var i = 0; i < props.length; ++i) { |
- var expr1 = "this." + props[i] + ' = 3;' |
- app.alert(expr1 + " yields " + eval(expr1)); |
+ app.alert('*** Setting properties ***'); |
+ for (var i = 0; i < props.length; ++i) { |
+ try { |
+ var expr1 = "this." + props[i] + ' = 3;' |
+ app.alert(expr1 + " yields " + eval(expr1)); |
+ } catch (e) { |
+ app.alert("ERROR: " + e.toString()); |
} |
- } catch (e) { |
- app.alert("ERROR: " + e.toString()); |
} |
} |