r98265 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98264‎ | r98265 | r98266 >
Date:21:37, 27 September 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added more tests
Modified paths:
  • /trunk/parsers/wikidom/tests/hype/test.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/tests/hype/test.js
@@ -25,4 +25,20 @@
2626 modelList.splice( 1, 0, modelItem3 );
2727 equal( updates, 3, 'es.modelList emits update events on splice' );
2828 equal( modelList[1], modelItem3, 'es.modelList inserts item on splice' );
 29+
 30+ modelList.pop();
 31+ equal( updates, 4, 'es.modelList emits update events on pop' );
 32+ deepEqual(
 33+ modelList.slice( 0 ),
 34+ [modelItem2, modelItem3],
 35+ 'es.modelList removes last item on pop'
 36+ );
 37+
 38+ modelList.shift();
 39+ equal( updates, 5, 'es.modelList emits update events on shift' );
 40+ deepEqual(
 41+ modelList.slice( 0 ),
 42+ [modelItem3],
 43+ 'es.modelList removes first item on shift'
 44+ );
2945 } );

Status & tagging log