Changeset 1292


Ignore:
Timestamp:
11/22/10 16:58:59 (9 years ago)
Author:
ejucovy
Message:

Change expected output to match actual output, because I disagree with douglas about what the expected/ideal output would be. But, leave his ideals intact in a comment for future reference. Now on to the ones that throw exceptions..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ticket1226/paraHandlerBest.js

    r1291 r1292  
    10081008                          [['child', 1], ['child', 0]]); // so can't do anything about it. 
    10091009 
     1010  // For the next two tests, Douglas thinks the ideal output would be (either of): 
     1011  //     [['child', 1], ['child', 0]], 
     1012  //     [['child', 1], ['child', 0], ['child', 0]]); 
     1013  // That is, with the cursor inside the <em> node. 
     1014  // I (ejucovy) think that the output [['child', 1]], inside the second <p> 
     1015  // but outside the <em>, is better.  It's also what we're actually getting back 
     1016  // from the browser, so let's go with that and leave this here for posterity.. 
    10101017  test('Body with inline tag: em node', 
    10111018       '<em>hi</em>', [], // Point to document body 
    1012        '<p>&nbsp;</p><p><em>hi</em></p>', [['child', 1], ['child', 0]], 
    1013                                          [['child', 1], ['child', 0], ['child', 0]]); 
    1014  
     1019       '<p>&nbsp;</p><p><em>hi</em></p>', [['child', 1]]); 
    10151020  test('Body with inline em: inside em node', 
    10161021       '<em>hi</em>', [['child', 0]], // Point to beginning of em node (before h) 
    1017        '<p>&nbsp;</p><p><em>hi</em></p>', [['child', 1], ['child', 0]], 
    1018                                          [['child', 1], ['child', 0], ['child', 0]]); 
     1022       '<p>&nbsp;</p><p><em>hi</em></p>', [['child', 1]]); 
    10191023 
    10201024  test('Body with inline tag: text node', 
Note: See TracChangeset for help on using the changeset viewer.