blob: 2e4eb071e594ca8559548ad9b314f7b8a1d619e3 [file] [log] [blame]
This tests CompositeEditCommand::breakOutOfEmptyListItem by inserting new paragraph
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS enterAtTarget('<ul><li>a <ul><li>b</li><li id="target"></li></ul> </li></ul>') is '<ul><li>a </li><ul><li>b</li></ul><li><br></li> </ul>'
PASS enterAtTarget('<ul><li>a <ul><li id="target"></li><li>b</li></ul> </li></ul>') is '<ul><li>a </li><li><br></li><ul><li>b</li></ul> </ul>'
PASS enterAtTarget('<ul><li>a <ul><li>b</li><li id="target"></li><li>c</li></ul> </li></ul>') is '<ul><li>a </li><ul><li>b</li></ul><li><br></li><ul><li>c</li></ul> </ul>'
PASS enterAtTarget('<ul><li>hello<ul><li id="target"><br></li></ul>world</li></ul>') is '<ul><li>hello<div><br></div>world</li></ul>'
PASS enterAtTarget('<ul><li>hello<ul><li id="target"><br></li></ul></li></ul>') is '<ul><li>hello</li><li><br></li></ul>'
PASS enterAtTarget('<ul><li><ul><li id="target"><br></li></ul>world</li></ul>') is '<ul><li><div><br></div>world</li></ul>'
PASS enterAtTarget('<ul><li><ul><li id="target"><br></li></ul></li></ul>') is '<ul><li></li><li><br></li></ul>'
PASS enterAtTarget('<ul><li>hello</li><br id="target"></ul>') is '<ul><li>hello</li></ul><div><br></div>'
PASS enterAtTarget('<ul><br id="target"></ul>') is '<div><br></div>'
PASS enterAtTarget('<ul><li>hello</li>abc<li id="target"></li></ul>') is '<ul><li>hello</li>abc</ul><div><br></div>'
PASS enterAtTarget('<ul><li>1</li><ul><li>2.1</li></ul><li id="target"></li></ul>') is '<ul><li>1</li><ul><li>2.1</li></ul></ul><div><br></div>'
PASS enterAtTarget('<ul><li>1</li><ul><li>2.1</li><li>2.2</li><li id="target"></li></ul><li>3</li></ul>') is '<ul><li>1</li><ul><li>2.1</li><li>2.2</li></ul><li><br></li><li>3</li></ul>'
PASS enterAtTarget('<ul><li>1</li><ul><li>2.1</li><li>2.2</li>abc<li id="target"></li></ul><li>3</li></ul>') is '<ul><li>1</li><ul><li>2.1</li><li>2.2</li>abc</ul><li><br></li><li>3</li></ul>'
PASS enterAtTarget('<ul><li>1</li><li id="target"></li><li>3</li></ul>') is '<ul><li>1</li></ul><div><br></div><ul><li>3</li></ul>'
PASS successfullyParsed is true
TEST COMPLETE