Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/plugins/notificationaggregator/manual/complex/multitask.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
tests/plugins/notificationaggregator/manual/complex/removing.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div id="editor1"> | ||
<p>Foo foo foo</p> | ||
</div> | ||
<script> | ||
var editor = CKEDITOR.replace( 'editor1' ); | ||
|
||
function createAggregator() { | ||
// Init notification aggregator. | ||
var aggregator = notification = new CKEDITOR.plugins.notificationAggregator( | ||
editor, | ||
'Loading {current} of {max}... {percentage}%' | ||
), | ||
// Create 2 tasks. | ||
tasks = [ | ||
aggregator.createTask( { weight: 10 } ), | ||
aggregator.createTask( { weight: 10 } ) | ||
], | ||
testActions = [ | ||
function() { | ||
tasks[ 0 ].done(); | ||
}, | ||
function() { | ||
tasks[ 1 ].cancel(); | ||
} | ||
]; | ||
|
||
execute( testActions ); | ||
} | ||
|
||
function execute( actions ) { | ||
var action = actions.shift(); | ||
|
||
if ( !action ) | ||
return; | ||
|
||
setTimeout( function() { | ||
action(); | ||
execute( actions ); | ||
}, 2000 ); | ||
} | ||
</script> | ||
<p> | ||
<input onclick="createAggregator();" type="button" value="Init aggregator"> | ||
</p> |
9 changes: 9 additions & 0 deletions
9
tests/plugins/notificationaggregator/manual/complex/removing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@bender-tags: notification, tc, 4.5.0 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, notificationaggregator | ||
|
||
--- | ||
|
||
1. Click "Init aggregator" button. | ||
1. Expected status after 2 seconds: "1 of 2... 50%". | ||
1. Expected status after 4 seconds: "1 of 1... 100%". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters