@@ -39,9 +39,8 @@ if (wysihtml5.browser.supported()) {
39
39
}
40
40
} ) ;
41
41
42
- test ( "Basic test" , function ( ) {
42
+ asyncTest ( "Basic test" , function ( ) {
43
43
expect ( 16 ) ;
44
- stop ( 2000 ) ;
45
44
46
45
var that = this ;
47
46
@@ -82,9 +81,8 @@ if (wysihtml5.browser.supported()) {
82
81
} ) ;
83
82
84
83
85
- test ( "Check setting of name as class name on iframe and iframe's body" , function ( ) {
84
+ asyncTest ( "Check setting of name as class name on iframe and iframe's body" , function ( ) {
86
85
expect ( 4 ) ;
87
- stop ( 2000 ) ;
88
86
89
87
this . textareaElement . className = "death-star" ;
90
88
@@ -105,9 +103,8 @@ if (wysihtml5.browser.supported()) {
105
103
} ) ;
106
104
107
105
108
- test ( "Check textarea with box-sizing: border-box;" , function ( ) {
106
+ asyncTest ( "Check textarea with box-sizing: border-box;" , function ( ) {
109
107
expect ( 1 ) ;
110
- stop ( 2000 ) ;
111
108
112
109
var that = this ;
113
110
@@ -134,9 +131,8 @@ if (wysihtml5.browser.supported()) {
134
131
} ) ;
135
132
136
133
137
- test ( "Check whether attributes are copied" , function ( ) {
134
+ asyncTest ( "Check whether attributes are copied" , function ( ) {
138
135
expect ( 1 ) ;
139
- stop ( 2000 ) ;
140
136
141
137
var that = this ;
142
138
@@ -148,9 +144,8 @@ if (wysihtml5.browser.supported()) {
148
144
} ) ;
149
145
150
146
151
- test ( "Check events" , function ( ) {
147
+ asyncTest ( "Check events" , function ( ) {
152
148
expect ( 8 ) ;
153
- stop ( 2000 ) ;
154
149
155
150
var that = this ;
156
151
@@ -206,9 +201,8 @@ if (wysihtml5.browser.supported()) {
206
201
} ) ;
207
202
208
203
209
- test ( "Check sync (basic)" , function ( ) {
204
+ asyncTest ( "Check sync (basic)" , function ( ) {
210
205
expect ( 1 ) ;
211
- stop ( 2500 ) ;
212
206
213
207
var that = this ;
214
208
@@ -225,9 +219,8 @@ if (wysihtml5.browser.supported()) {
225
219
} ) ;
226
220
227
221
228
- test ( "Check sync (advanced)" , function ( ) {
222
+ asyncTest ( "Check sync (advanced)" , function ( ) {
229
223
expect ( 5 ) ;
230
- stop ( 4000 ) ;
231
224
232
225
var that = this ;
233
226
@@ -272,9 +265,8 @@ if (wysihtml5.browser.supported()) {
272
265
} ) ;
273
266
274
267
275
- test ( "Check placeholder" , function ( ) {
268
+ asyncTest ( "Check placeholder" , function ( ) {
276
269
expect ( 13 ) ;
277
- stop ( 3000 ) ;
278
270
279
271
var that = this ;
280
272
@@ -322,9 +314,8 @@ if (wysihtml5.browser.supported()) {
322
314
} ) ;
323
315
324
316
325
- test ( "Check public api" , function ( ) {
317
+ asyncTest ( "Check public api" , function ( ) {
326
318
expect ( 14 ) ;
327
- stop ( 2000 ) ;
328
319
329
320
var that = this ;
330
321
@@ -372,9 +363,8 @@ if (wysihtml5.browser.supported()) {
372
363
} ) ;
373
364
374
365
375
- test ( "Parser (default parser method with parserRules as object" , function ( ) {
366
+ asyncTest ( "Parser (default parser method with parserRules as object" , function ( ) {
376
367
expect ( 2 ) ;
377
- stop ( 3000 ) ;
378
368
379
369
var parserRules = {
380
370
tags : {
@@ -402,9 +392,8 @@ if (wysihtml5.browser.supported()) {
402
392
} ) ;
403
393
404
394
405
- test ( "Parser (custom parser method with parserRules as object" , function ( ) {
395
+ asyncTest ( "Parser (custom parser method with parserRules as object" , function ( ) {
406
396
expect ( 7 ) ;
407
- stop ( 3000 ) ;
408
397
409
398
var that = this ,
410
399
parserRules = { script : undefined } ,
@@ -434,9 +423,8 @@ if (wysihtml5.browser.supported()) {
434
423
} ) ;
435
424
436
425
437
- test ( "Inserting an element which causes the textContent/innerText of the contentEditable element to be empty works correctly" , function ( ) {
426
+ asyncTest ( "Inserting an element which causes the textContent/innerText of the contentEditable element to be empty works correctly" , function ( ) {
438
427
expect ( 2 ) ;
439
- stop ( 2000 ) ;
440
428
441
429
var that = this ;
442
430
@@ -462,8 +450,7 @@ if (wysihtml5.browser.supported()) {
462
450
} ) ;
463
451
464
452
465
- test ( "Check for stylesheets" , function ( ) {
466
- stop ( 2000 ) ;
453
+ asyncTest ( "Check for stylesheets" , function ( ) {
467
454
expect ( 5 ) ;
468
455
469
456
var that = this ;
0 commit comments