Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
62cebacd
Commit
62cebacd
authored
Nov 15, 2013
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add es3: true to test/.jshintrc. Make tests conform to that jsHint setting.
parent
936126f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
.jshintrc
test/.jshintrc
+1
-0
ajax.js
test/unit/ajax.js
+1
-1
core.js
test/unit/core.js
+1
-1
No files found.
test/.jshintrc
View file @
62cebacd
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
"undef": true,
"undef": true,
"unused": true,
"unused": true,
"es3": true,
"evil": true,
"evil": true,
"sub": true,
"sub": true,
...
...
test/unit/ajax.js
View file @
62cebacd
...
@@ -1457,7 +1457,7 @@ module( "ajax", {
...
@@ -1457,7 +1457,7 @@ module( "ajax", {
jQuery
.
ajax
({
jQuery
.
ajax
({
url
:
"data/badjson.js"
,
url
:
"data/badjson.js"
,
dataType
:
"script"
,
dataType
:
"script"
,
throws
:
true
,
"throws"
:
true
,
// TODO find a way to test this asynchronously, too
// TODO find a way to test this asynchronously, too
async
:
false
,
async
:
false
,
// Global events get confused by the exception
// Global events get confused by the exception
...
...
test/unit/core.js
View file @
62cebacd
...
@@ -1363,7 +1363,7 @@ test("jQuery.parseJSON", function() {
...
@@ -1363,7 +1363,7 @@ test("jQuery.parseJSON", function() {
deepEqual
(
deepEqual
(
jQuery
.
parseJSON
(
"{
\"
string
\"
:
\"\"
,
\"
number
\"
: 4.2e+1,
\"
object
\"
: {},"
+
jQuery
.
parseJSON
(
"{
\"
string
\"
:
\"\"
,
\"
number
\"
: 4.2e+1,
\"
object
\"
: {},"
+
"
\"
array
\"
: [[]],
\"
boolean
\"
: [ true, false ],
\"
null
\"
: null }"
),
"
\"
array
\"
: [[]],
\"
boolean
\"
: [ true, false ],
\"
null
\"
: null }"
),
{
string
:
""
,
number
:
42
,
object
:
{},
array
:
[[]],
boolean
:
[
true
,
false
],
"null"
:
null
},
{
string
:
""
,
number
:
42
,
object
:
{},
array
:
[[]],
"boolean"
:
[
true
,
false
],
"null"
:
null
},
"Dictionary of all data types"
"Dictionary of all data types"
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment