Revision: 4400
Author: jasvir
Date: Mon Mar 21 15:26:58 2011
Log: Fix jQuery tests
http://codereview.appspot.com/4277068
The jQuery tests were not updated when the es53 api changed. This CL
updates it.
[email protected]
http://code.google.com/p/google-caja/source/detail?r=4400
Modified:
/trunk/src/com/google/caja/demos/playground/es53.html
/trunk/third_party/js/jqueryjs/test/hostpage-template.html
=======================================
--- /trunk/src/com/google/caja/demos/playground/es53.html Mon Feb 21
12:25:45 2011
+++ /trunk/src/com/google/caja/demos/playground/es53.html Mon Mar 21
15:26:58 2011
@@ -64,7 +64,9 @@
imports.handleSet___ = void 0;
var tamings___ = [];
eval(policyJS);
- grantAdditionalPowers(tamings___, ___, imports);
+ if ('function' === typeof grantAdditionalPowers) {
+ grantAdditionalPowers(tamings___, ___, imports);
+ }
return ___.whitelistAll(imports);
}
=======================================
--- /trunk/third_party/js/jqueryjs/test/hostpage-template.html Sat Feb 5
12:04:13 2011
+++ /trunk/third_party/js/jqueryjs/test/hostpage-template.html Mon Mar 21
15:26:58 2011
@@ -7,8 +7,8 @@
console.log(x);
}
- function onReady(initJs) {
- initJs(document.getElementById('d___'),
+ function onReady(api) {
+ api.initJS(document.getElementById('d___'),
{ rewrite: function(uri, mimetype) { return uri; } },
"",
{ url : "/jquery/@[email protected]" });