michael@0:
michael@0:
michael@0:
michael@0: Test for E4X "for each" syntax
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0: function runTest(i) {
michael@0: var t = tests[i];
michael@0: count++;
michael@0: try {
michael@0: Function("for each (var a in []) {}");
michael@0: ok(t.enabled, "JavaScript" + ("version" in t ? " " + t.version : "") + " supports for-each-in");
michael@0: } catch (e) {
michael@0: ok(!t.enabled, "JavaScript" + ("version" in t ? " " + t.version : "") + " does NOT support for-each-in");
michael@0: }
michael@0: }
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0: