[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: tests/khtmltests/regression/tests/js
From: Maks Orlovich <maksim () kde ! org>
Date: 2008-10-02 23:43:48
Message-ID: 1222991028.698438.24079.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 867168 by orlovich:
Regression test for #160466
M +13 -0 scope.js
--- trunk/tests/khtmltests/regression/tests/js/scope.js #867167:867168
@@ -110,4 +110,17 @@
shouldBe('testVarInWith()', '"PASS"');
+// Local function injection with eval
+function testFunInject()
+{
+ try {
+ eval("function injected() { return 'PASS'; }");
+ return injected();
+ } catch (e) {
+ return "Threw!";
+ }
+}
+
+shouldBe('testFunInject()', '"PASS"');
+
debug("Done.");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic