mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
748b34cc49
Change-Id: I30b56b1c43202d8cb6af397d2813b19b1a71d30e
16 lines
404 B
JavaScript
16 lines
404 B
JavaScript
module( 've.ce.Document' );
|
|
|
|
/* Tests */
|
|
|
|
test( 'selectNodes', function() {
|
|
var doc = new ve.ce.Document( new ve.dm.Document( ve.dm.example.data ) ),
|
|
cases = ve.example.getSelectNodesCases( doc );
|
|
for ( var i = 0; i < cases.length; i++ ) {
|
|
deepEqual(
|
|
ve.example.getNodeSelectionSummary( cases[i].actual ),
|
|
ve.example.getNodeSelectionSummary( cases[i].expected ),
|
|
cases[i].msg
|
|
);
|
|
}
|
|
} );
|