aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-02-02 22:44:13 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-02-05 15:35:48 +0100
commit95b21c6ec2790d0d051cdfe95d73148d7c385d68 (patch)
tree0fd2145a8e4ec13a850afd57b7fc7004401e999c /test/unit/core.js
parenta74ad04bc9c4c7203303b2547e94f1cc53c2a460 (diff)
downloadjquery-95b21c6ec2790d0d051cdfe95d73148d7c385d68.tar.gz
jquery-95b21c6ec2790d0d051cdfe95d73148d7c385d68.zip
Build: Upgrade QUnit to 1.14.0
Diffstat (limited to 'test/unit/core.js')
-rw-r--r--test/unit/core.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index fa5ed93b9..d781d261a 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -1326,7 +1326,7 @@ test("jQuery.parseHTML", function() {
equal( jQuery.parseHTML(), null, "Nothing in, null out." );
equal( jQuery.parseHTML( null ), null, "Null in, null out." );
equal( jQuery.parseHTML( "" ), null, "Empty string in, null out." );
- raises(function() {
+ throws(function() {
jQuery.parseHTML( "<div></div>", document.getElementById("form") );
}, "Passing an element as the context raises an exception (context should be a document)");
@@ -1387,34 +1387,34 @@ test("jQuery.parseJSON", function() {
deepEqual( jQuery.parseJSON("\n{\"test\":1}\t"), { "test": 1 },
"Leading and trailing whitespace are ignored" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON();
}, null, "Undefined raises an error" );
- raises( function() {
+ throws(function() {
jQuery.parseJSON( "" );
}, null, "Empty string raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("''");
}, null, "Single-quoted string raises an error" );
/*
// Broken on IE8
- raises(function() {
+ throws(function() {
jQuery.parseJSON("\" \\a \"");
}, null, "Invalid string escape raises an error" );
// Broken on IE8, Safari 5.1 Windows
- raises(function() {
+ throws(function() {
jQuery.parseJSON("\"\t\"");
}, null, "Unescaped control character raises an error" );
// Broken on IE8
- raises(function() {
+ throws(function() {
jQuery.parseJSON(".123");
}, null, "Number with no integer component raises an error" );
*/
- raises(function() {
+ throws(function() {
var result = jQuery.parseJSON("0101");
// Support: IE9+
@@ -1423,22 +1423,22 @@ test("jQuery.parseJSON", function() {
throw new Error("close enough");
}
}, null, "Leading-zero number raises an error or is parsed as decimal" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("{a:1}");
}, null, "Unquoted property raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("{'a':1}");
}, null, "Single-quoted property raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("[,]");
}, null, "Array element elision raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("{},[]");
}, null, "Comma expression raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("[]\n,{}");
}, null, "Newline-containing comma expression raises an error" );
- raises(function() {
+ throws(function() {
jQuery.parseJSON("\"\"\n\"\"");
}, null, "Automatic semicolon insertion raises an error" );