diff --git a/test/csp.php b/test/csp.php index 13c324ea6..46cba8348 100644 --- a/test/csp.php +++ b/test/csp.php @@ -5,25 +5,7 @@
CSP Test Page
diff --git a/test/data/include_js.php b/test/data/include_js.php new file mode 100644 index 000000000..467a6b2be --- /dev/null +++ b/test/data/include_js.php @@ -0,0 +1,102 @@ +/* +<'+'/script>');"; +} + +// the concatenated version of the the src files is both the default and the fallback +// because it does not require you to "make" jquery for it to update +if( $output === "" ) { + $files = array( + "intro", + "core", + "callbacks", + "deferred", + "support", + "data", + "queue", + "attributes", + "event", + "sizzle/sizzle", + "sizzle-jquery", + "traversing", + "manipulation", + "css", + "ajax", + "ajax/jsonp", + "ajax/script", + "ajax/xhr", + "effects", + "offset", + "dimensions", + "exports", + "outro" + ); + + foreach ( $files as $file ) { + $output .= file_get_contents( "../../src/" . $file . ".js" ); + } + + $output = str_replace( "(function( jQuery ) {", "", $output ); + $output = str_replace( "})( jQuery );", "", $output ); +} + +echo $output; +die(); +?> +*/ + +// javascript fallback using src files in case this is not run on a PHP server! +var baseURL = document.location.href.replace( /\/test\/.+/, "/"), + files = [ + "core", + "callbacks", + "deferred", + "support", + "data", + "queue", + "attributes", + "event", + "sizzle/sizzle", + "sizzle-jquery", + "traversing", + "manipulation", + "css", + "ajax", + "ajax/jsonp", + "ajax/script", + "ajax/xhr", + "effects", + "offset", + "dimensions", + "exports" + ], + len = files.length, + i = 0; + +for ( ; i < len; i++ ) { + document.write(" - - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - + diff --git a/test/data/support/bodyBackground.html b/test/data/support/bodyBackground.html index 3d135ab56..cd3744b87 100644 --- a/test/data/support/bodyBackground.html +++ b/test/data/support/bodyBackground.html @@ -10,26 +10,7 @@