summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js')
-rw-r--r--extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js b/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
index 7ed765e9..d4ffe5ae 100644
--- a/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
+++ b/extensions/WikiEditor/modules/ext.wikiEditor.tests.toolbar.js
@@ -4,7 +4,7 @@
var textareaId = '#wpTextbox1';
var wikiEditorTests = {
// Add emoticons section
- 'add_sections_toolbar': {
+ add_sections_toolbar: {
call: 'addToToolbar',
data: {
'sections': {
@@ -159,8 +159,8 @@ var wikiEditorTests = {
data: {
section: 'info',
page: 'removeme'
- },
- test: '*[rel=info].section *[rel=removeme].page',
+ },
+ test: '*[rel=info].section *[rel=removeme].page',
pre: 1,
post: 0
},
@@ -171,8 +171,8 @@ var wikiEditorTests = {
section: 'info',
page: 'emoticons',
'character': ':))'
- },
- test: '*[rel=info].section *[rel=emoticons].page *[rel=":))"]',
+ },
+ test: '*[rel=info].section *[rel=emoticons].page *[rel=":))"]',
pre: 1,
post: 0
},
@@ -211,7 +211,7 @@ jQuery(document).ready( function ( $ ) {
return false;
}
- var test, pre, post, i,
+ var test, pre, post,
messages = [ 'Running tests for wikiEditor API' ],
$target = $( textareaId ),
$ui = $target.data( 'wikiEditor-context' ).$ui,
@@ -234,13 +234,13 @@ jQuery(document).ready( function ( $ ) {
}
if ( window.console ) {
- for ( i = 0; i < messages.length; i++ ) {
+ for ( var i = 0; i < messages.length; i++ ) {
window.console.log( messages[i] );
}
}
$(this)
- .attr( 'title', messages.join( ' | ' ) )
+ .attr( 'title', messages.join( " | " ) )
.text( passes + ' / ' + tests + ' were successful' )
.css( 'backgroundColor', passes < tests ? 'red' : 'green' )
.data( 'testDone', 'true' )