New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
last commit #3
last commit #3
Conversation
// Otherwise it's easy to write tests that pass on test/index.html | ||
// but fail in Karma runner (where the baseURL is different). | ||
var baseURL = "data/", | ||
var FILEPATH = "/test/data/testinit.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
var FILEPATH = "/test/data/testinit.js",
Replace <space>
with <+tab>
at column 4.
Confidence: 0.983
Triggered rule jquery#26:
left_1_diff_line > 0.500
right_0_length > 1.500
left_3_reserved in |;|
left_0_internal_type in |stringliteral|
left_2_reserved in |;|
left_1_label in |<newline>|
left_0_reserved in |;|
right_0_roles in |function˙literal|
left_0_label in |<space>|
var baseURL = "data/", | ||
var FILEPATH = "/test/data/testinit.js", | ||
activeScript = [].slice.call( document.getElementsByTagName( "script" ), -1 )[ 0 ], | ||
parentUrl = activeScript && activeScript.src ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
parentUrl = activeScript && activeScript.src ?
Replace <newline>
with <space>
at column 48.
Confidence: 0.954
Triggered rule jquery#64:
left_1_diff_line ≤ 0.500
left_0_internal_type in |commentline˙stringliteral|
right_0_reserved in |}|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_0_internal_type in |variabledeclaration|
right_1_roles in |comment|
left_0_label in |<space>|
var FILEPATH = "/test/data/testinit.js", | ||
activeScript = [].slice.call( document.getElementsByTagName( "script" ), -1 )[ 0 ], | ||
parentUrl = activeScript && activeScript.src ? | ||
activeScript.src.replace( /[?#].*/, "" ) + FILEPATH.replace( /[^/]+/g, ".." ) + "/" : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
activeScript.src.replace( /[?#].*/, "" ) + FILEPATH.replace( /[^/]+/g, ".." ) + "/" :
Replace <newline>
with <space>
at column 88.
Confidence: 0.954
Triggered rule jquery#64:
left_1_diff_line ≤ 0.500
left_0_internal_type in |commentline˙stringliteral|
right_0_reserved in |}|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_0_internal_type in |variabledeclaration|
right_1_roles in |comment|
left_0_label in |<space>|
activeScript.src.replace( /[?#].*/, "" ) + FILEPATH.replace( /[^/]+/g, ".." ) + "/" : | ||
"../", | ||
|
||
// baseURL is intentionally set to "data/" instead of "". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
// baseURL is intentionally set to "data/" instead of "".
Replace <-tab>
with <+tab>
at column 1.
Confidence: 0.983
Triggered rule jquery#26:
left_1_diff_line > 0.500
right_0_length > 1.500
left_3_reserved in |;|
left_0_internal_type in |stringliteral|
left_2_reserved in |;|
left_1_label in |<newline>|
left_0_reserved in |;|
right_0_roles in |function˙literal|
left_0_label in |<space>|
return [ | ||
{ | ||
url: baseURL + "name.html#foo", | ||
beforeSend: function( xhr, settings ) { | ||
assert.equal( settings.url, baseURL + "name.html#foo", "Make sure that the URL has its hash." ); | ||
assert.equal( settings.url, baseURL + "name.html#foo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
assert.equal( settings.url, baseURL + "name.html#foo",
Replace <newline>
with <space>
at column 60.
Confidence: 0.954
Triggered rule jquery#64:
left_1_diff_line ≤ 0.500
left_0_internal_type in |commentline˙stringliteral|
right_0_reserved in |}|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_0_internal_type in |variabledeclaration|
right_1_roles in |comment|
left_0_label in |<space>|
// Clear the cache-buster param value | ||
var url = settings.url.replace( /_=[^&#]+/, "_=" ); | ||
assert.equal( url, baseURL + "name.html?abc&devo=hat&_=#brownies", | ||
"hash preserved for cache-busting request with query component and data." ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
"hash preserved for cache-busting request with query component and data." );
Replace "
with <space>
at column 7.
Confidence: 0.954
Triggered rule jquery#64:
left_1_diff_line ≤ 0.500
left_0_internal_type in |commentline˙stringliteral|
right_0_reserved in |}|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_0_internal_type in |variabledeclaration|
right_1_roles in |comment|
left_0_label in |<space>|
@@ -1146,7 +1150,7 @@ QUnit.module( "ajax", { | |||
setup: function() { | |||
Globals.register( "testBar" ); | |||
}, | |||
url: window.location.href.replace( /[^\/]*$/, "" ) + baseURL + "mock.php?action=testbar", | |||
url: url( "mock.php?action=testbar" ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
url: url( "mock.php?action=testbar" ),
Replace <newline>
with <space>
at column 42.
Confidence: 0.843
Triggered rule jquery#55:
node_start_col > 19.500
left_1_diff_line ≤ 0.500
right_0_length ≤ 4.500
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
right_1_internal_type in |stringliteral|
left_0_label in |<space>|
} else { | ||
absoluteUrl = window.location.href.replace( /[^/]*$/, "" ) + absoluteUrl; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
}
Replace <newline>
with <space>
at column 4.
Confidence: 0.954
Triggered rule jquery#64:
left_1_diff_line ≤ 0.500
left_0_internal_type in |commentline˙stringliteral|
right_0_reserved in |}|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_0_internal_type in |variabledeclaration|
right_1_roles in |comment|
left_0_label in |<space>|
{ pattern: "dist/jquery.js", included: false, served: true }, | ||
{ pattern: "dist/*.map", included: false, served: true }, | ||
{ pattern: "external/qunit/qunit.css", included: false, served: true }, | ||
{ pattern: "dist/jquery.*", included: false, served: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
{ pattern: "dist/jquery.*", included: false, served: true },
Replace <space>
with <newline>
at column 7.
Confidence: 0.673
Triggered rule jquery#40:
left_1_diff_line ≤ 0.500
right_4_length > 3.500
left_0_internal_type in |stringliteral|
left_0_reserved in |;˙{|
right_2_roles in |value|
left_0_label in |<space>|
Replace <space>
with <newline>
at column 33.
Confidence: 0.921
Triggered rule jquery#53:
node_start_col ≤ 33.500
left_1_diff_line ≤ 0.500
right_0_length > 4.500
left_3_reserved in |[|
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
left_0_label in |<space>|
Replace <space>
with <newline>
at column 50.
Confidence: 0.727
Triggered rule jquery#51:
node_start_col > 33.500
left_1_diff_line ≤ 0.500
right_0_length > 4.500
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_1_internal_type in |callexpression|
left_0_label in |<space>|
Replace <newline>
with <space>
at column 66.
Confidence: 0.843
Triggered rule jquery#55:
node_start_col > 19.500
left_1_diff_line ≤ 0.500
right_0_length ≤ 4.500
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
right_1_internal_type in |stringliteral|
left_0_label in |<space>|
{ pattern: "dist/*.map", included: false, served: true }, | ||
{ pattern: "external/qunit/qunit.css", included: false, served: true }, | ||
{ pattern: "dist/jquery.*", included: false, served: true }, | ||
{ pattern: "src/**", included: false, served: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: style mismatch:
{ pattern: "src/**", included: false, served: true },
Replace <space>
with <newline>
at column 7.
Confidence: 0.673
Triggered rule jquery#40:
left_1_diff_line ≤ 0.500
right_4_length > 3.500
left_0_internal_type in |stringliteral|
left_0_reserved in |;˙{|
right_2_roles in |value|
left_0_label in |<space>|
Replace <space>
with <newline>
at column 26.
Confidence: 0.921
Triggered rule jquery#53:
node_start_col ≤ 33.500
left_1_diff_line ≤ 0.500
right_0_length > 4.500
left_3_reserved in |[|
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
left_0_label in |<space>|
Replace <space>
with <newline>
at column 43.
Confidence: 0.727
Triggered rule jquery#51:
node_start_col > 33.500
left_1_diff_line ≤ 0.500
right_0_length > 4.500
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
parents_1_internal_type in |callexpression|
left_0_label in |<space>|
Replace <newline>
with <space>
at column 59.
Confidence: 0.843
Triggered rule jquery#55:
node_start_col > 19.500
left_1_diff_line ≤ 0.500
right_0_length ≤ 4.500
left_0_internal_type in |commentline˙stringliteral|
left_0_reserved in |;˙{|
parents_0_roles in |literal|
right_1_internal_type in |stringliteral|
left_0_label in |<space>|
Summary
Checklist