From 66575dc35c964b1bfc9dde838e0d96612c3f8dd8 Mon Sep 17 00:00:00 2001 From: Piotr Jasiun Date: Wed, 11 Feb 2015 12:01:05 +0100 Subject: [PATCH 1/2] Tests: drag and drop manual tests. --- .../plugins/clipboard/manual/draganddrop.html | 133 ++++++++++++++++++ tests/plugins/clipboard/manual/draganddrop.md | 37 +++++ 2 files changed, 170 insertions(+) create mode 100644 tests/plugins/clipboard/manual/draganddrop.html create mode 100644 tests/plugins/clipboard/manual/draganddrop.md diff --git a/tests/plugins/clipboard/manual/draganddrop.html b/tests/plugins/clipboard/manual/draganddrop.html new file mode 100644 index 00000000000..0c5e291c3c5 --- /dev/null +++ b/tests/plugins/clipboard/manual/draganddrop.html @@ -0,0 +1,133 @@ + +
+

Helpers (hide/show)

+
+ +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo vulputate tempor. Sed <b>at elit</b> vel ligula mollis aliquet a ac odio. +
+Aenean cursus egestas ipsum.
+			
+
+
+
+
+
+

Classic editor (hide/show)

+
+ +
+
+
+

Inline editor (hide/show)

+
+

Saturn V carrying Apollo 11 Apollo 11

+ +

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. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.

+ +

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

+ +

Broadcasting and quotes

+ +

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

+ +
+

One small step for [a] man, one giant leap for mankind.

+
+ +

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:

+ +
+

[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.

+
+ +

Technical details

+ + + + + + + + + + + + + + + + + + + + + + + +
Mission crew
PositionAstronaut
CommanderNeil A. Armstrong
Command Module PilotMichael Collins
Lunar Module PilotEdwin "Buzz" E. Aldrin, Jr.
+ +

Launched by a Saturn V 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:

+ +
    +
  1. Command Module with a cabin for the three astronauts which was the only part which landed back on Earth
  2. +
  3. Service Module which supported the Command Module with propulsion, electrical power, oxygen and water
  4. +
  5. Lunar Module for landing on the Moon.
  6. +
+ +

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.

+ +
+

Source: Wikipedia.org

+
+
+ diff --git a/tests/plugins/clipboard/manual/draganddrop.md b/tests/plugins/clipboard/manual/draganddrop.md new file mode 100644 index 00000000000..21364765d0c --- /dev/null +++ b/tests/plugins/clipboard/manual/draganddrop.md @@ -0,0 +1,37 @@ +@bender-tags: tc, clipboard +@bender-ui: collapsed +@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, image, font, stylescombo, basicstyles, format, maximize, blockquote, list, table, resize, elementspath, justify, clipboard, floatingspace, sourcearea + + * test internal D&D in the editor, + * dropping content from an external source (helpers, MS Word), + * test D&D between editors. + +Expected behavior: +------------------ + * proper drop position, + * in the internal and cross editor D&D: dragged content should be removed, + * dropped content should be (more less) the same as dragged content, + * paste event should be fired, + * undo should work properly (one undo operation for one D&D), + * no crashes, nor errors. + +Drag scenarios: +--------------- + * drag simple text, + * drag table cell/cells, + * drag link, + * drag helpers textarea content, + * drag helpers html content, + * drag content from MS Word. + +Drop scenarios: +--------------- + * drop in the different paragraph (before and after), + * drop in the same paragraph (before and after), + * drop in the same text node (before and after), + * drop between text lines, + * drop on the whitespace next to the header, + * drop on the whitespace on the left side from the quote, + * drop into a cell. + +**Note:** internal D&D is the most complex operation because editor have to handle two ranges at the same time. \ No newline at end of file From 7360518e506698477c1fbc7a2ce1f3e98a0af289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Thu, 5 Mar 2015 12:18:01 +0100 Subject: [PATCH 2/2] Tests: This is a design test in the clipboard plugin dir - both tags are unnecessary. --- tests/plugins/clipboard/manual/draganddrop.md | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/plugins/clipboard/manual/draganddrop.md b/tests/plugins/clipboard/manual/draganddrop.md index 21364765d0c..58348383d85 100644 --- a/tests/plugins/clipboard/manual/draganddrop.md +++ b/tests/plugins/clipboard/manual/draganddrop.md @@ -1,4 +1,3 @@ -@bender-tags: tc, clipboard @bender-ui: collapsed @bender-ckeditor-plugins: wysiwygarea, toolbar, undo, basicstyles, image, font, stylescombo, basicstyles, format, maximize, blockquote, list, table, resize, elementspath, justify, clipboard, floatingspace, sourcearea