DLynch has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/280680

Change subject: [Failing] Test cases for cursoring off focused block nodes with 
shift
......................................................................

[Failing] Test cases for cursoring off focused block nodes with shift

Bug: T131361
Change-Id: If7dfcb2adbe25f2560433e146ff7b84ecbfcd7d1
---
M tests/ce/ve.ce.Surface.test.js
1 file changed, 33 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/80/280680/1

diff --git a/tests/ce/ve.ce.Surface.test.js b/tests/ce/ve.ce.Surface.test.js
index 56bb203..8fef7c8 100644
--- a/tests/ce/ve.ce.Surface.test.js
+++ b/tests/ce/ve.ce.Surface.test.js
@@ -648,6 +648,39 @@
                                expectedData: function () {},
                                expectedRangeOrSelection: new ve.Range( 19 ),
                                msg: 'Cursor down off a block node'
+                       },
+                       // ...with shift
+                       {
+                               htmlOrDoc: blockImageDoc,
+                               rangeOrSelection: new ve.Range( 5, 18 ),
+                               keys: [ 'SHIFT+LEFT' ],
+                               expectedData: function () {},
+                               expectedRangeOrSelection: new ve.Range( 4, 18 ),
+                               msg: 'Cursor left off a block node with shift'
+                       },
+                       {
+                               htmlOrDoc: blockImageDoc,
+                               rangeOrSelection: new ve.Range( 5, 18 ),
+                               keys: [ 'SHIFT+UP' ],
+                               expectedData: function () {},
+                               expectedRangeOrSelection: new ve.Range( 4, 18 ),
+                               msg: 'Cursor up off a block node with shift'
+                       },
+                       {
+                               htmlOrDoc: blockImageDoc,
+                               rangeOrSelection: new ve.Range( 5, 18 ),
+                               keys: [ 'SHIFT+RIGHT' ],
+                               expectedData: function () {},
+                               expectedRangeOrSelection: new ve.Range( 5, 19 ),
+                               msg: 'Cursor right off a block node with shift'
+                       },
+                       {
+                               htmlOrDoc: blockImageDoc,
+                               rangeOrSelection: new ve.Range( 5, 18 ),
+                               keys: [ 'SHIFT+DOWN' ],
+                               expectedData: function () {},
+                               expectedRangeOrSelection: new ve.Range( 5, 19 ),
+                               msg: 'Cursor down off a block node with shift'
                        }
                ];
 

-- 
To view, visit https://gerrit.wikimedia.org/r/280680
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7dfcb2adbe25f2560433e146ff7b84ecbfcd7d1
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: DLynch <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to