Skip to content

Commit

Permalink
Merge branch 't/12868' into major
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Feb 13, 2015
2 parents b19422a + 2ec8acf commit 10531dd
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 7 deletions.
14 changes: 14 additions & 0 deletions tests/plugins/notification/manual/api.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div style="padding: 3000px 3000px 3000px 3000px;">
<textarea cols="80" id="editor1" name="editor1" rows="10">
&lt;p&gt;&lt;strong&gt;Apollo 11&lt;/strong&gt; was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.&lt;/p&gt;&lt;p&gt;Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt;&lt;p&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;/p&gt;&lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;p&gt;Apollo 11 effectively ended the Space Race and fulfilled a national goal proposed in 1961 by the late U.S. President John F. Kennedy in a speech before the United States Congress:&lt;/p&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;p&gt;Technical details &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;PositionAstronaut&lt;/p&gt;&lt;p&gt;CommanderNeil A. Armstrong&lt;/p&gt;&lt;p&gt;Command Module PilotMichael Collins&lt;/p&gt;&lt;p&gt;Lunar Module PilotEdwin "Buzz" E. Aldrin, Jr.&lt;/p&gt;&lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of NASA's Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/p&gt;&lt;p&gt;After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean on July 24.&lt;/p&gt;&lt;p&gt;Source: Wikipedia.org&lt;/p&gt;
</textarea>
<script>
var editor = CKEDITOR.replace( 'editor1', {
extraPlugins: 'notification',
width: 650,
toolbar: [ [ 'Undo', 'Redo' ], [ 'Bold', 'Italic', 'Underline' ] ]
} );

window.scrollTo( 2950, 2950 );
</script>
</div>
20 changes: 20 additions & 0 deletions tests/plugins/notification/manual/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@bender-tags: 4.5.0
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, notification, floatingspace
@bender-include: _helpers/manualplayground.js

Play with notifications using console, e.g.:

```js
var editor = CKEDITOR.instances.editor1;

var warning = editor.showNotification( 'Foo', 'warning' );
warning.hide();

var progress = editor.showNotification( 'Bar', 'progress', 0.1 );
progress.update( { progress: 0.5 } );
progress.update( { type: 'success', message: 'Done!', important: true } );
```
Check if API is complete and consistent.

**Note:** if you close notification it will be shown again if update is important.
4 changes: 1 addition & 3 deletions tests/plugins/notification/manual/classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
* Play with notification using buttons.
* Using scroll, check if position of notification is correct.

**Note:** `info` and `success` notifications should close automatically after 5 sec or on `ESC` key if editor is focused.

**Note:** if you close notification it will be shown again if update is important.
**Note:** `info` and `success` notifications should close automatically after 5 sec or on `ESC` key if editor is focused.
4 changes: 1 addition & 3 deletions tests/plugins/notification/manual/inline.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
* Play with notification using buttons.
* Using scroll, check if position of notification is correct.

**Note:** `info` and `success` notifications should close automatically after 5 sec or on `ESC` key if editor is focused.

**Note:** if you close notification it will be shown again if update is important.
**Note:** `info` and `success` notifications should close automatically after 5 sec or on `ESC` key if editor is focused.
4 changes: 3 additions & 1 deletion tests/plugins/notification/manual/inlinenarrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

* If you don't see the editor, scroll the page to the center.
* Show notification using button.
* Using scroll, check if position of notification is correct.
* Using scroll, check if position of notification is correct.

**Note:** `info` and `success` notifications should close automatically after 5 sec or on `ESC` key if editor is focused.

0 comments on commit 10531dd

Please sign in to comment.