Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

EventSource test #153

Closed
wants to merge 2 commits into from

4 participants

@pusewicz

Looks good.

@Yaffle

+1
althoug, there is no test for EventSource + CORS

@paulirish paulirish closed this pull request from a commit
@paulirish paulirish eventsource detect added. fixes #153
also Camino handles @font-face fine, despite the previous commit
6f08b01
@paulirish paulirish closed this in 6f08b01
@phistuck phistuck referenced this pull request from a commit
PhistucK eventsource detect added. fixes #153
also Camino handles @font-face fine, despite the previous commit
ced5f13
@patrickkettner patrickkettner referenced this pull request from a commit in patrickkettner/Modernizr
@paulirish paulirish eventsource detect added. fixes #153
also Camino handles @font-face fine, despite the previous commit
2b43697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +17 −0 modernizr.js
View
17 modernizr.js
@@ -332,6 +332,20 @@ window.Modernizr = (function(window,document,undefined){
};
+ tests['deviceorientation'] = function() {
+
+ return ('DeviceOrientationEvent' in window);
+
+ };
+
+
+ tests['devicemotion'] = function() {
+
+ return ('DeviceMotionEvent' in window);
+
+ };
+
+
/**
* geolocation tests for the new Geolocation API specification.
* This test is a standards compliant-only test; for more complete
@@ -416,6 +430,9 @@ window.Modernizr = (function(window,document,undefined){
return ('WebSocket' in window);
};
+ tests['eventsource'] = function(){
+ return ('EventSource' in window);
+ };
// http://css-tricks.com/rgba-browser-support/
tests['rgba'] = function() {
Something went wrong with that request. Please try again.