File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ window . evaledSrcScript = true
Original file line number Diff line number Diff line change @@ -118,6 +118,20 @@ if ($.support.pjax) {
118
118
} )
119
119
} )
120
120
121
+ asyncTest ( "evals scripts" , function ( ) {
122
+ var frame = this . frame
123
+
124
+ frame . $ ( '#main' ) . on ( 'pjax:success' , function ( ) {
125
+ equal ( true , frame . evaledSrcScript )
126
+ equal ( true , frame . evaledInlineScript )
127
+ start ( )
128
+ } )
129
+ frame . $ . pjax ( {
130
+ url : "scripts.html" ,
131
+ container : "#main"
132
+ } )
133
+ } )
134
+
121
135
122
136
asyncTest ( "container option accepts String selector" , function ( ) {
123
137
var frame = this . frame
Original file line number Diff line number Diff line change
1
+ < p > Got some script tags here</ p >
2
+ < script type ="text/javascript " src ="/test/evaled.js "> </ script >
3
+ < script type ="text/javascript "> window . evaledInlineScript = true </ script >
4
+ < script type ="text/javascript "> window . parent . iframeLoad ( window ) </ script >
You can’t perform that action at this time.
0 commit comments