Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created February 7, 2017 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxaviers/5ba86fa65b014367b1af46f03ce88576 to your computer and use it in GitHub Desktop.
Save rxaviers/5ba86fa65b014367b1af46f03ce88576 to your computer and use it in GitHub Desktop.

I was curious to see how native browsers (desktop and mobile) behave against the tests of this repo. I am taking the liberty to post the results in here in case anyone else has the same question. Therefore, ignoring the shim [1] we have the following results.

Important This issue is only a placeholder for the tests against native browsers that are running without js-iso8601 shim. Therefore, it doesn't represent bugs to this library.

Desktop

Mac Chrome 56.0 Mac Firefox 50.0 Mac Safari 8 Win10 Edge 14 Win8 IE 11 Win8 IE10 Mac Opera 42
bs_macyos_chrome_56 0 bs_macyos_firefox_50 0 bs_macyos_safari_8 0 bs_win10_edge_14 0 bs_win8 1_ie_11 0 bs_win8_ie_10 0 1 bs_macelc_opera_42 0
bs_macyos_chrome_56 0 1 bs_macyos_firefox_50 0 1 bs_macyos_safari_8 0 1 bs_win10_edge_14 0 1 bs_win8 1_ie_11 0 1 bs_win8_ie_10 0 bs_macelc_opera_42 0 1

Mobile/Tablet

iPhone 6S Safari Samsung Galaxy S5 Chrome (android 4.4) Google Nexus 7 Chrome (android 6.0) Nokia Lumina Windows Phone 8.1
bs_realios_mobile_iphone 6s-9 0 bs_realdroid_mobile_samsung galaxy s5-4 4-1080x1920 bs_realdroid_tablet_google nexus 7-6 0-1200x1920 bs_winphone_mobile_nokia lumia 930-8 1-1080x1920
bs_realios_mobile_iphone 6s-9 0 1 bs_realdroid_mobile_samsung galaxy s5-4 4-1080x1920 1 bs_realdroid_tablet_google nexus 7-6 0-1200x1920 1 bs_winphone_mobile_nokia lumia 930-8 1-1080x1920 1

1: in order to bypass the shim, I made the following change in "tests/index.html":

diff --git a/tests/index.html b/tests/index.html
index 2cb4798..e672ee5 100644
--- a/tests/index.html
+++ b/tests/index.html
@@ -5,11 +5,6 @@
     <title>ES5 ISO 8601 Test Suite</title>
     <link rel="stylesheet" href="qunit/qunit/qunit.css" media="screen">
     <script src="qunit/qunit/qunit.js"></script>
-    <script>if (!/[?&]useNativeDateParse(?:\W|$)/.test(location.search)) {
-        Date.parse = function () { return NaN; };
-        document.write('<script src="../iso8601.js"><\/script>');
-    }
-    </script>
     <script src="test.js"></script>
 </head>
 <body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment