mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-30 03:05:39 -05:00
Fixed test suite to pass on IE
This commit is contained in:
parent
9ba708c4bd
commit
af78c1cca8
1 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@
|
||||||
module("Parsing");
|
module("Parsing");
|
||||||
|
|
||||||
// Note, different browsers behave slightly different
|
// Note, different browsers behave slightly different
|
||||||
var correctMatch = /Mon, 18 Dec 1978 17:17:00 GMT/;
|
var correctMatch = /Mon, 18 Dec 1978 17:17:00 (GMT|UTC)/;
|
||||||
|
|
||||||
test("From Z", function () {
|
test("From Z", function () {
|
||||||
ok(($("#testParsing1").html().match(correctMatch)), "Correctly parsed");
|
ok(($("#testParsing1").html().match(correctMatch)), "Correctly parsed");
|
||||||
|
@ -325,7 +325,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
test("From blank TZ", function () {
|
test("From blank TZ", function () {
|
||||||
ok(($("#testParsing7").html().match(/Mon, 18 Dec 1978 \d\d:17:00 GMT/)), "Correctly parsed, assumed local time");
|
ok(($("#testParsing7").html().match(/Mon, 18 Dec 1978 \d\d:17:00 (GMT|UTC)/)), "Correctly parsed, assumed local time");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("From Z with milliseconds", function () {
|
test("From Z with milliseconds", function () {
|
||||||
|
|
Loading…
Reference in a new issue