Permalink
Browse files

fix all quotes, single to double

  • Loading branch information...
1 parent e6dda72 commit 934252d0b748cd9f249d87175777ae35086ef2cd @rwaldron committed Jun 14, 2011
Showing with 79 additions and 89 deletions.
  1. +17 −17 test/jquery.eventsource.specit.js
  2. +62 −72 test/jquery.eventsource.unit.js
@@ -12,29 +12,29 @@ describe("jQuery.EventSource", function() {
var streams = {}, labelfor, stypeOf;
before(function() {
- labelfor = 'text-event-source';
+ labelfor = "text-event-source";
stypeOf = window.EventSource ? EventSource : XMLHttpRequest;
streams = $.eventsource({
label: labelfor,
- url: '../test-event-sources/event-source-1.php'
+ url: "../test-event-sources/event-source-1.php"
});
});
it("$.eventsource streams cache", function() {
- assert($.eventsource('streams')).should(beAn, Object);
- assert(sizeOf($.eventsource('streams'))).should(beLessThanOrEqualTo, 1);
+ assert($.eventsource("streams")).should(beAn, Object);
+ assert(sizeOf($.eventsource("streams"))).should(beLessThanOrEqualTo, 1);
});
it("$.eventsource stream object", function() {
- assert(streams[labelfor]).should(include, 'history');
- assert(streams[labelfor]).should(include, 'isHostApi');
- assert(streams[labelfor]).should(include, 'lastEventId');
- assert(streams[labelfor]).should(include, 'options');
- assert(streams[labelfor]).should(include, 'stream');
+ assert(streams[labelfor]).should(include, "history");
+ assert(streams[labelfor]).should(include, "isHostApi");
+ assert(streams[labelfor]).should(include, "lastEventId");
+ assert(streams[labelfor]).should(include, "options");
+ assert(streams[labelfor]).should(include, "stream");
});
it("$.eventsource stream object should be", function() {
@@ -49,10 +49,10 @@ describe("jQuery.EventSource", function() {
it("$.eventsource stream options object", function() {
- assert(streams[labelfor].options).should(include, 'url');
- assert(streams[labelfor].options).should(include, 'label');
- assert(streams[labelfor].options).should(include, 'message');
- assert(streams[labelfor].options).should(include, 'open');
+ assert(streams[labelfor].options).should(include, "url");
+ assert(streams[labelfor].options).should(include, "label");
+ assert(streams[labelfor].options).should(include, "message");
+ assert(streams[labelfor].options).should(include, "open");
});
it("$.eventsource stream options object should be", function() {
@@ -66,10 +66,10 @@ describe("jQuery.EventSource", function() {
it("$.eventsource stream closing", function() {
- $.eventsource('close', labelfor);
+ $.eventsource("close", labelfor);
- assert($.eventsource('streams')).should(beAn, Object);
- assert(sizeOf($.eventsource('streams'))).should(beLessThanOrEqualTo, 0);
+ assert($.eventsource("streams")).should(beAn, Object);
+ assert(sizeOf($.eventsource("streams"))).should(beLessThanOrEqualTo, 0);
});
@@ -78,4 +78,4 @@ describe("jQuery.EventSource", function() {
streams = {};
});
-});
+});
Oops, something went wrong.

0 comments on commit 934252d

Please sign in to comment.