From 69ae829737d0d1b3ce7ac5162226f9f066eaaff9 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 18 Sep 2014 13:15:24 -0700 Subject: [PATCH] Remove test for functionality tested in core Add comment to remaining test explaning its purpose. Depends on Id7c291b in core. Change-Id: Ia545edac3b2adbd6d45ed5427a9e5e6f9df0da54 --- modules/ve-mw/tests/ce/ve.ce.Surface.test.js | 37 ++------------------ 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/modules/ve-mw/tests/ce/ve.ce.Surface.test.js b/modules/ve-mw/tests/ce/ve.ce.Surface.test.js index cce095ecba..9eebc5868c 100644 --- a/modules/ve-mw/tests/ce/ve.ce.Surface.test.js +++ b/modules/ve-mw/tests/ce/ve.ce.Surface.test.js @@ -12,41 +12,8 @@ QUnit.module( 've.ce.Surface' ); QUnit.test( 'handleDelete', function ( assert ) { var i, cases = [ - { - html: - '

Foo

' + - ve.dm.mwExample.MWTransclusion.blockOpen + ve.dm.mwExample.MWTransclusion.blockContent + - '

Bar

', - range: new ve.Range( 4 ), - operations: ['delete'], - expectedData: function () {}, - expectedRange: new ve.Range( 5, 7 ), - msg: 'Block transclusion is focused not deleted' - }, - { - html: - '

Foo

' + - ve.dm.mwExample.MWTransclusion.blockOpen + ve.dm.mwExample.MWTransclusion.blockContent + - '

Bar

', - range: new ve.Range( 4 ), - operations: ['delete', 'delete'], - expectedData: function ( data ) { - data.splice( 5, 2 ); - }, - expectedRange: new ve.Range( 6 ), - msg: 'Block transclusion is deleted with two keypresses' - }, - { - html: - '

Foo

' + - ve.dm.mwExample.MWBlockImage.html + - '

Bar

', - range: new ve.Range( 4 ), - operations: ['delete'], - expectedData: function () { }, - expectedRange: new ve.Range( 5, 14 ), - msg: 'Block image is focused not deleted' - }, + // This asserts that getRelativeRange (via getRelativeOffset) doesn't try to + // enter a handleOwnChildren node { html: ve.dm.mwExample.MWBlockImage.html +