[webkit-changes] cvs commit: LayoutTests/fast/text attributed-substring-from-range-lines-expected.txt attributed-substring-from-range-lines.html

Justin justing at opensource.apple.com
Fri Dec 23 00:05:14 PST 2005


justing     05/12/23 00:05:14

  Modified:    .        ChangeLog
  Added:       editing/input
                        attributed-substring-from-range-lines-expected.txt
                        attributed-substring-from-range-lines.html
  Removed:     fast/text attributed-substring-from-range-lines-expected.txt
                        attributed-substring-from-range-lines.html
  Log:
          <http://bugzilla.opendarwin.org/show_bug.cgi?id=6211>
          fast/text/attributed-substring-from-range-lines needs LayoutTests/editing/editing.js
  
          * editing/input/attributed-substring-from-range-lines-expected.txt: Added.
          * editing/input/attributed-substring-from-range-lines.html: Added.
          * fast/text/attributed-substring-from-range-lines-expected.txt: Removed.
          * fast/text/attributed-substring-from-range-lines.html: Removed.
  
  Revision  Changes    Path
  1.183     +10 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.182
  retrieving revision 1.183
  diff -u -r1.182 -r1.183
  --- ChangeLog	23 Dec 2005 08:02:16 -0000	1.182
  +++ ChangeLog	23 Dec 2005 08:05:12 -0000	1.183
  @@ -1,3 +1,13 @@
  +2005-12-22  Justin Garcia  <justin.garcia at apple.com>
  +
  +        <http://bugzilla.opendarwin.org/show_bug.cgi?id=6211>
  +        fast/text/attributed-substring-from-range-lines needs LayoutTests/editing/editing.js
  +
  +        * editing/input/attributed-substring-from-range-lines-expected.txt: Added.
  +        * editing/input/attributed-substring-from-range-lines.html: Added.
  +        * fast/text/attributed-substring-from-range-lines-expected.txt: Removed.
  +        * fast/text/attributed-substring-from-range-lines.html: Removed.
  +
   2005-12-22  Maciej Stachowiak  <mjs at apple.com>
   
           Reviewed by Eric.
  
  
  
  1.1                  LayoutTests/editing/input/attributed-substring-from-range-lines-expected.txt
  
  Index: attributed-substring-from-range-lines-expected.txt
  ===================================================================
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > BODY > HTML > #document to 1 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > BODY > HTML > #document to 1 of #text > BODY > HTML > #document toDOMRange:range from 2 of #text > BODY > HTML > #document to 2 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > B > SPAN > BODY > HTML > #document to 1 of #text > B > SPAN > BODY > HTML > #document toDOMRange:range from 1 of #text > B > SPAN > BODY > HTML > #document to 1 of #text > B > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document toDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document toDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document toDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > I > B > SPAN > BODY > HTML > #document to 1 of #text > I > B > SPAN > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BR to 0 of BR toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > DIV > BODY > HTML > #document to 8 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > BODY > HTML > #document to 8 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document toDOMRange:range from 3 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 1 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 2 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 4 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 5 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 5 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 6 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 7 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 8 of #text > SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > SPAN > SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 8 of #text > SPAN > SPAN > FONT > SPAN > DIV > BODY > HTML > #document toDOMRange:range from 2 of SPAN > FONT > SPAN > DIV > BODY > HTML > #document to 2 of SPAN > FONT > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
  EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  123456
  line two
  
  and three   
  
  Actual HTML:
  <pre> <DIV class="editing" id="test"></DIV> </pre>
  (0, 0):
  (0, 0) length: 0
  (0, 2): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (0, 2) length: 2
  (1, 2): 2{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (1, 2) length: 2
  (0, 3): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (0, 3) length: 3
  (0, 6): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }456{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (0, 6) length: 6
  (0, 7): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }456{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}
  (0, 7) length: 8
  (0, 31): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }456{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}
  (0, 31) length: 8
  (0, 100): 12{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }456{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}
  (0, 100) length: 8
  (1, 100): 2{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }456{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}
  (1, 100) length: 7
  (2, 3): 3{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Bold 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }45{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (2, 3) length: 3
  (5, 1): 6{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (5, 1) length: 1
  (5, 2): 6{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}
  (5, 2) length: 3
  (5, 5): 6{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-BoldItalic 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}lin{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }
  (5, 5) length: 6
  (15, 14): line two{ NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; } {}and { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 16.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=4.00"; }three   { NSColor = NSCalibratedWhiteColorSpace 0 1; NSFont = "Times-Roman 48.00 pt. P [] (0xXXXXXXXX) fobj=0xXXXXXXXX, spc=12.00"; }
  (15, 14) length: 22
  (100, 0): undefined
  (100, 100): undefined
  
  
  
  
  
  1.1                  LayoutTests/editing/input/attributed-substring-from-range-lines.html
  
  Index: attributed-substring-from-range-lines.html
  ===================================================================
  <html>
  <head>
  <style>
  .editing { 
      margin: 10; padding: 0; 
  }
  </style>
  <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
  
  <script>
  
  function editingTest() {
      typeCharacterCommand('1');
      typeCharacterCommand('2');
      boldCommand();
      typeCharacterCommand('3');
      italicCommand();
      typeCharacterCommand('4');
      typeCharacterCommand('5');
      typeCharacterCommand('6');
      italicCommand();
      boldCommand();
      insertParagraphCommand();
      typeCharacterCommand('l');
      typeCharacterCommand('i');
      typeCharacterCommand('n');
      typeCharacterCommand('e');
      typeCharacterCommand(' ');
      typeCharacterCommand('t');
      typeCharacterCommand('w');
      typeCharacterCommand('o');
      insertLineBreakCommand();
      insertLineBreakCommand();
      typeCharacterCommand('a');
      typeCharacterCommand('n');
      typeCharacterCommand('d');
      typeCharacterCommand(' ');
      fontSizeCommand("36pt");
      underlineCommand();
      typeCharacterCommand('t');
      typeCharacterCommand('h');
      typeCharacterCommand('r');
      typeCharacterCommand('e');
      typeCharacterCommand('e');
      typeCharacterCommand(' ');
      typeCharacterCommand(' ');
      typeCharacterCommand(' ');
      underlineCommand();
      insertLineBreakCommand();
  }
  
  </script>
  
  <title>Attributed String Test</title> 
  </head>
  <body contenteditable id="root">
  <div id="wrapper">
  <div class="editing" id="test"></div>
  </div>
  
  <script>
  runEditingTest();
  </script>
  
  <script type="text/javascript">
  
      var console_messages = document.createElement("ol");
      
      function log(message)
      {
          var item = document.createElement("li");
          item.appendChild(document.createTextNode(String(message).replace(/0x[0-9a-fA-F]{8}/g, "0xXXXXXXXX")));
          console_messages.appendChild(item);
      }
      
      if (window.layoutTestController) {
          
          try {
          
              layoutTestController.dumpAsText();
          
              log("Actual HTML:");
              log("<pre>" + document.getElementById("wrapper").innerHTML + "</pre>");
              window.getSelection().setPosition(document.body, 0);
  
              log("(0, 0): " + textInputController.attributedSubstringFromRange(0, 0));
              log("(0, 0) length: " + textInputController.attributedSubstringFromRange(0, 0).length());
              log("(0, 2): " + textInputController.attributedSubstringFromRange(0, 2));
              log("(0, 2) length: " + textInputController.attributedSubstringFromRange(0, 2).length());
              log("(1, 2): " + textInputController.attributedSubstringFromRange(1, 2));
              log("(1, 2) length: " + textInputController.attributedSubstringFromRange(1, 2).length());
              log("(0, 3): " + textInputController.attributedSubstringFromRange(0, 3));
              log("(0, 3) length: " + textInputController.attributedSubstringFromRange(0, 3).length());
              log("(0, 6): " + textInputController.attributedSubstringFromRange(0, 6));
              log("(0, 6) length: " + textInputController.attributedSubstringFromRange(0, 6).length());
              log("(0, 7): " + textInputController.attributedSubstringFromRange(0, 7));
              log("(0, 7) length: " + textInputController.attributedSubstringFromRange(0, 7).length()); // should be 7 characters!
              log("(0, 31): " + textInputController.attributedSubstringFromRange(0, 31));
              log("(0, 31) length: " + textInputController.attributedSubstringFromRange(0, 31).length()); // actual length IS 31
              log("(0, 100): " + textInputController.attributedSubstringFromRange(0, 100));
              log("(0, 100) length: " + textInputController.attributedSubstringFromRange(0, 100).length()); // should be 31 characters!
              log("(1, 100): " + textInputController.attributedSubstringFromRange(1, 100));
              log("(1, 100) length: " + textInputController.attributedSubstringFromRange(1, 100).length()); // should be 30 characters!
              log("(2, 3): " + textInputController.attributedSubstringFromRange(2, 3));
              log("(2, 3) length: " + textInputController.attributedSubstringFromRange(2, 3).length());
              log("(5, 1): " + textInputController.attributedSubstringFromRange(5, 1));
              log("(5, 1) length: " + textInputController.attributedSubstringFromRange(5, 1).length());
              log("(5, 2): " + textInputController.attributedSubstringFromRange(5, 2));
              log("(5, 2) length: " + textInputController.attributedSubstringFromRange(5, 2).length());
              log("(5, 5): " + textInputController.attributedSubstringFromRange(5, 5));
              log("(5, 5) length: " + textInputController.attributedSubstringFromRange(5, 5).length());
              log("(15, 14): " + textInputController.attributedSubstringFromRange(15, 14));
              log("(15, 14) length: " + textInputController.attributedSubstringFromRange(15, 14).length()); // should be 14 characters!
              log("(100, 0): " + textInputController.attributedSubstringFromRange(100, 0)); // should be undefined
              log("(100, 100): " + textInputController.attributedSubstringFromRange(100, 100)); // should be undefined
              
          } catch (ex) {
              log("Exception: " + ex.description);
          }
          
          var console = document.createElement("p");
          console.appendChild(console_messages);
          document.body.appendChild(console);
          
      } else {
          document.write("(cannot run interactively)");
      }
  </script>
  </body>
  </html>
  
  
  



More information about the webkit-changes mailing list