]> source.dussan.org Git - jquery.git/commitdiff
Tests: Restore IE8 workarounds (Sinon timers for IE & HTML5 shiv)
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 16 Mar 2015 16:54:36 +0000 (17:54 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 16 Mar 2015 16:54:36 +0000 (17:54 +0100)
test/index.html

index cadb53b7bf7b1ace605ff0211ef4d1200a507e70..184cea93a40dcb7e2c9a10e9117e9d225eb5898a 100644 (file)
@@ -15,6 +15,7 @@
        <script src="../external/qunit/qunit.js"></script>
        <script src="../external/requirejs/require.js"></script>
        <script src="../external/sinon/fake_timers.js"></script>
+       <script src="../external/sinon/timers_ie.js"></script>
        <!-- See testinit for the list of tests -->
        <script src="data/testinit.js"></script>
 
        <script src="jquery.js"></script>
 
        <script>
+               // html5shiv, enabling HTML5 elements to be used with jQuery
+               ( "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup " +
+                       "mark meter nav output progress section summary time video"
+               ).replace(/\w+/g, function(n) {
+                       document.createElement(n);
+               });
+
                // Load tests if they have not been loaded
                // This is in a different script tag to ensure that
                // jQuery is on the page when the testrunner executes