Skip to content

Commit

Permalink
Tests: manual test improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Nov 17, 2017
1 parent add6221 commit e555751
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 81 deletions.
99 changes: 99 additions & 0 deletions tests/plugins/widget/manual/scrolloncut.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<head>
<link rel="stylesheet" href="/apps/ckeditor/contents.css">
</head>

<div>
<h2>Classic</h2>
<hr>
<div id="classic"></div>
</div>

<div>
<h2>Divarea</h2>
<hr>
<div id="divarea"></div>
</div>

<div>
<h2>Inline</h2>
<hr>
<div id="inline" contenteditable="true"></div>
</div>

<div>
<h2>Inline header</h2>
<hr>
<h1 id="inlineheader" contenteditable="true" style="width:500px;">
Apollo 11
<br>
<br>
Apollo 11 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. <img height="20" alt="CKEditor logo" src="%BASE_PATH%_assets/logo.png" /> Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.
<br>
<br>
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.
<br>
<br>
Broadcasting and quotes
<br>
<br>
Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:
<br>
<br>
"One small step for [a] man, one giant leap for mankind."
<br>
<br>
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:
<br>
<br>
"[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth."
</h1>
</div>

<div style="display:none;" id="startup-content">
<h1>Apollo 11</h1>

<p>Apollo 11 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. <img height="20" alt="CKEditor logo" src="%BASE_PATH%_assets/logo.png" /> Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p>

<figure class="image right"><img alt="CKEditor logo" src="%BASE_PATH%_assets/logo.png" />
<figcaption>CKEditor</figcaption>
</figure>

<p>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.</p>

<h2>Broadcasting and quotes</h2>

<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>

<blockquote>
<p>One small step for [a] man, one giant leap for mankind.</p>
</blockquote>

<p>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:</p>

<blockquote>
<p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
</blockquote>
</div>


<script>
if ( !( CKEDITOR.env.edge && CKEDITOR.env.version >= 16 ) ) {
bender.ignore();
}

var startupContent = document.querySelector( '#startup-content' ).innerHTML;

CKEDITOR.on( 'instanceReady', function( evt ) {
if ( evt.editor.name != 'inlineheader' ) {
evt.editor.setData( startupContent );
}
} );

CKEDITOR.replace( 'classic' );
CKEDITOR.replace( 'divarea', {
extraPlugins: 'divarea'
} );

CKEDITOR.inline( 'inline' );
CKEDITOR.inline( 'inlineheader' );
</script>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@bender-ui: collapsed
@bender-tags: 4.8.0, 1160, bug
@bender-ckeditor-plugins: wysiwygarea,toolbar,undo,elementspath,clipboard,floatingspace,sourcearea,htmlwriter,image2
@bender-ckeditor-plugins: wysiwygarea,toolbar,undo,elementspath,clipboard,floatingspace,sourcearea,htmlwriter,image2,format,blockquote

## For each editor instance:

Expand Down
80 changes: 0 additions & 80 deletions tests/tickets/gh1160/1.html

This file was deleted.

0 comments on commit e555751

Please sign in to comment.