mediawiki-extensions-Visual.../modules/ve/test
Catrope 613dd14332 New annotation API: convert existing annotations
This changes ve.dm.LinkAnnotation to be a generic annotation for <a>
tags, and adds ve.dm.MWInternalLinkAnnotation and
ve.dm.MWExternalLinkAnnotation as MW-specific subclasses. This nicely
splits out the MW-specific parts in LinkAnnotation, and ideally we'd
also move these files somewhere else to reflect their MW-specificity,
but I haven't gotten to that yet.

Similarly, ve.dm.TextStyleAnnotation is now a generic base class for
simple tag-only-no-metadata annotations, and it has 11 subclasses, one
for each tag we support. This is quite a bit more verbose than the
previous code, but I think it's cleaner and more flexible. I considered
writing a function that would generate a TextStyleAnnotation subclass,
then calling that 11 times, but that's not possible if we want to keep
named functions for the constructors.

Change-Id: Ifba10153eef40280e44025dd72d4e9d9f33b0632
2012-10-12 15:07:25 -07:00
..
ce Revert "No longer create zero-length text nodes" 2012-10-12 18:04:15 +00:00
dm New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html New annotation API: convert existing annotations 2012-10-12 15:07:25 -07:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Created QUnit tests for ve.Document.selectNodes method (mode "branches") 2012-10-04 15:24:02 -07:00
ve.Factory.test.js ve.Factory: No need for a-b-c workaround, createObject and apply. 2012-10-09 19:36:48 +02:00
ve.LeafNode.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Node.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.qunit.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.Range.test.js Create method ve.Range.isCollapsed() and added some tests for ve.Range class. 2012-09-28 13:32:26 -07:00
ve.test.js Merge "Add ve.getProp()" 2012-10-11 18:26:31 +00:00