Changeset 1180
- Timestamp:
- 04/09/09 20:17:29 (4 years ago)
- Files:
-
- 1 modified
-
branches/Ticket1226/paraHandlerBest.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/Ticket1226/paraHandlerBest.js
r1179 r1180 968 968 '<p> </p><p><br> </p>\n', [['child', 1]]); // Mozilla kicks off a trailing newline. Do I care about this? 969 969 970 test(' Empty Body',970 test('No tags: Empty Body', 971 971 '', [], 972 972 '<p> </p><p> </p>', [['child', 1]], … … 986 986 [['child', 1], ['child', 0]]); 987 987 test('Text node in body: after text', 988 'Hi', [['child', 0], ['offset', -1]], // Point after 'i'988 'Hi', [['child', 0], ['offset', 'length']], // Point after 'i' 989 989 '<p>Hi</p><p> </p>', [['child', 1]], 990 990 [['child', 1], ['child', 0]]); 991 991 test('Text node in body: after text node', 992 'Hi', [['offset', -1]], // Point after text node992 'Hi', [['offset', 'length']], // Point after text node 993 993 '<p>Hi</p><p> </p>', [['child', 1]], 994 994 [['child', 1], ['child', 0]]); … … 1012 1012 [['child', 1], ['child', 0]]); 1013 1013 test('Split header 1: after text', 1014 '<h1>hi</h1>', [['child', 0], ['child', 0], ['offset', -1]],1014 '<h1>hi</h1>', [['child', 0], ['child', 0], ['offset', 'length']], 1015 1015 '<h1>hi</h1><p> </p>', [['child', 1]], 1016 1016 [['child', 1], ['child', 0]]); 1017 1017 test('Split header 1: after text node', 1018 '<h1>hi</h1>', [['child', 0], ['offset', -1]],1018 '<h1>hi</h1>', [['child', 0], ['offset', 'length']], 1019 1019 '<h1>hi</h1><p> </p>', [['child', 1]], 1020 1020 [['child', 1], ['child', 0]]); 1021 1021 test('Split header 1: after h1 node', 1022 '<h1>hi</h1>', [['offset', -1]],1022 '<h1>hi</h1>', [['offset', 'length']], 1023 1023 '<h1>hi</h1><p> </p>', [['child', 1]], 1024 1024 [['child', 1], ['child', 0]]);
