Exploded & tested stuff #20

Merged
MoOx merged 33 commits from testling into master 2014-10-14 01:27:04 -05:00
2 changed files with 16 additions and 0 deletions
Showing only changes of commit d5395c3d07 - Show all commits

View File

@@ -0,0 +1,8 @@
module.exports = function() {
// Borrowed wholesale from https://github.com/defunkt/jquery-pjax
return window.history &&
window.history.pushState &&
window.history.replaceState &&
// pushState isnt reliable on iOS until 5.
!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/)
}

View File

@@ -0,0 +1,8 @@
var tape = require("tape")
var isSupported = require("../../../src/scripts/lib/is-supported.js")
tape("test isSupported method", function(t) {
t.true(isSupported(), "well, we run test on supported browser, so it should be ok here")
t.end()
})