Skip to content

Commit

Permalink
fix all quotes, single to double
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jun 14, 2011
1 parent e6dda72 commit 934252d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 89 deletions.
34 changes: 17 additions & 17 deletions test/jquery.eventsource.specit.js
Expand Up @@ -12,29 +12,29 @@ describe("jQuery.EventSource", function() {
var streams = {}, labelfor, stypeOf; var streams = {}, labelfor, stypeOf;


before(function() { before(function() {
labelfor = 'text-event-source'; labelfor = "text-event-source";
stypeOf = window.EventSource ? EventSource : XMLHttpRequest; stypeOf = window.EventSource ? EventSource : XMLHttpRequest;
streams = $.eventsource({ streams = $.eventsource({
label: labelfor, label: labelfor,
url: '../test-event-sources/event-source-1.php' url: "../test-event-sources/event-source-1.php"
}); });
}); });








it("$.eventsource streams cache", function() { it("$.eventsource streams cache", function() {
assert($.eventsource('streams')).should(beAn, Object); assert($.eventsource("streams")).should(beAn, Object);
assert(sizeOf($.eventsource('streams'))).should(beLessThanOrEqualTo, 1); assert(sizeOf($.eventsource("streams"))).should(beLessThanOrEqualTo, 1);
}); });




it("$.eventsource stream object", function() { it("$.eventsource stream object", function() {
assert(streams[labelfor]).should(include, 'history'); assert(streams[labelfor]).should(include, "history");
assert(streams[labelfor]).should(include, 'isHostApi'); assert(streams[labelfor]).should(include, "isHostApi");
assert(streams[labelfor]).should(include, 'lastEventId'); assert(streams[labelfor]).should(include, "lastEventId");
assert(streams[labelfor]).should(include, 'options'); assert(streams[labelfor]).should(include, "options");
assert(streams[labelfor]).should(include, 'stream'); assert(streams[labelfor]).should(include, "stream");
}); });


it("$.eventsource stream object should be", function() { it("$.eventsource stream object should be", function() {
Expand All @@ -49,10 +49,10 @@ describe("jQuery.EventSource", function() {




it("$.eventsource stream options object", function() { it("$.eventsource stream options object", function() {
assert(streams[labelfor].options).should(include, 'url'); assert(streams[labelfor].options).should(include, "url");
assert(streams[labelfor].options).should(include, 'label'); assert(streams[labelfor].options).should(include, "label");
assert(streams[labelfor].options).should(include, 'message'); assert(streams[labelfor].options).should(include, "message");
assert(streams[labelfor].options).should(include, 'open'); assert(streams[labelfor].options).should(include, "open");
}); });


it("$.eventsource stream options object should be", function() { it("$.eventsource stream options object should be", function() {
Expand All @@ -66,10 +66,10 @@ describe("jQuery.EventSource", function() {


it("$.eventsource stream closing", function() { it("$.eventsource stream closing", function() {


$.eventsource('close', labelfor); $.eventsource("close", labelfor);


assert($.eventsource('streams')).should(beAn, Object); assert($.eventsource("streams")).should(beAn, Object);
assert(sizeOf($.eventsource('streams'))).should(beLessThanOrEqualTo, 0); assert(sizeOf($.eventsource("streams"))).should(beLessThanOrEqualTo, 0);
}); });




Expand All @@ -78,4 +78,4 @@ describe("jQuery.EventSource", function() {
streams = {}; streams = {};
}); });


}); });

0 comments on commit 934252d

Please sign in to comment.