Commit Graph

75431 Commits

Author SHA1 Message Date
L. David Baron
049969c5e2 Add missing </title> that was causing these tests to be commented out. (Bug 681403) 2011-08-23 15:42:11 -04:00
Fabien Cazenave
e48e824329 Bug 677752 - [contentEditable] indent and justify* fail on editable nodes that have only one child; r=ehsan
Issue #1: indent/justify* can create non-valid fragments.
When applying a block-level formatting to a text node, Gecko creates a div or
blockquote block around the text node and sets the corresponding "align" or
"style" attribute. This patch checks that the active editing host can contain
such a block-level element.

Issue #2: indent/justify* can modify the active editing host.
On the first child of the editable element, the selection is extended outside of
the active editing host -- which causes a few issues for our test cases.
In this patch, this issue is "solved" by modifying
`nsHTMLEditRules::GetPromotedPoint' for block-level operations.


** About the tests **

Sorry for the long explanation but I prefer to be as sharp as possible when I
have to modify existing unit tests.

This patch raises 34 unit test "failures" which are improvements.
Two test files are concerned and have been modified accordingly:
  * test_htmleditor_keyevent_handling
  * test_richtext2.html

One test has been clarified (no real modification):
  * test_bug414526.html

Of course, a specific unit test has been added, see `test_bug677752.html'.


** editor/libeditor/html/tests/test_htmleditor_keyevent_handling.html **
Outdenting now works properly, which results in 4 `FAIL'.

  * 7372 ERROR TEST-UNEXPECTED-FAIL
      | non-tabbable HTML editor: Shift+Tab after Tab on UL
      - got "<ul><li id=\"target\">ul list item</li></ul>",
      expected "<ul><ul><li id=\"target\">ul list item</li></ul></ul>"

  * 7379 ERROR TEST-UNEXPECTED-FAIL
      | non-tabbable HTML editor: Shift+Tab on UL
      - got "ul list item",
      expected "<ul><li id=\"target\">ul list item</li></ul>"

  * 7415 ERROR TEST-UNEXPECTED-FAIL
      | non-tabbable HTML editor: Shift+Tab after Tab on OL -
      got "<ol><li id=\"target\">ol list item</li></ol>",
      expected "<ol><ol><li id=\"target\">ol list item</li></ol></ol>"

  * 7422 ERROR TEST-UNEXPECTED-FAIL
      | non-tabbable HTML editor: Shfit+Tab on OL
      - got "ol list item",
      expected "<ol><li id=\"target\">ol list item</li></ol>"


** editor/libeditor/html/tests/browserscope/test_richtext2.html **
The 15 tests that now pass result in 15 `FAIL' and 15 `UNEXPECTED_PASS'.
Here's an overview of what we had before the patch:

  * Section A - Apply Formatting Tests: +10 points
                    before patch: 21/31 (Selection:  9/31)
                     after patch: 28/31 (Selection: 12/31)

      FB:BQ_TEXT-1_SI    EXECUTION EXCEPTION
      FB:BQ_TEXT-1_SI    EXECUTION EXCEPTION
      FB:BQ_BR.BR-1_SM   EXECUTION EXCEPTION
      FB:BQ_BR.BR-1_SM   EXECUTION EXCEPTION
      IND_TEXT-1_SI      EXECUTION EXCEPTION
      IND_TEXT-1_SI      EXECUTION EXCEPTION
      JC_TEXT-1_SC       editing host is modified
      JF_TEXT-1_SC       editing host is modified
      JL_TEXT-1_SC       editing host is modified
      JR_TEXT-1_SC       editing host is modified

  * Section AC - Apply Formatting Tests, using styleWithCSS: +5 points
                    before patch:  7/18 (Selection:  5/18)
                     after patch: 12/18 (Selection:  5/18)

      IND_TEXT-1_SI      editing host is modified
      JC_TEXT-1_SC       editing host is modified
      JF_TEXT-1_SC       editing host is modified
      JL_TEXT-1_SC       editing host is modified
      JR_TEXT-1_SC       editing host is modified


** editor/libeditor/html/tests/test_bug414526.html **
This test has been clarified to get more explicit report messages -- the test
themselves haven't been changed. A `todo_is' test has been added.
This test is the one that shows that `IsNodeInActiveEditor' can't be modified,
and that limiting the range promotion for block-level operations is preferrable.
2011-08-23 15:10:14 -04:00
arno renevier
c6489843bc bug 678842: remember spell check setting per site; r=ehsan 2011-08-23 15:03:33 -04:00
Stephen Horlander
794c2d4ce0 Bug 679771 - replace keyhole-circle-lion.png with non-fuzzy version. r=dao 2011-08-23 14:53:34 -04:00
Oleg Romashin
478e24c10b Bug 680488 - QFeedBack include is not needed for geolocation provider file; r=dougt 2011-08-23 17:45:10 +01:00
Lucas Rocha
2f9026209c Bug 666236 - Only allow browser to go back/forward when those are valid operations; r=mfinkle
When tapping back/forward buttons in a rapid sequence, the buttons are not
instantly disabled once the operations are not possible anymore (i.e. reached
the beginning/end of session history). In order to avoid producing errors, we
ensure that go back/forward operations are only performed when they are valid
actions.
2011-08-23 17:45:10 +01:00
Lucas Rocha
daf409d49b Bug 666236 - Don't pass argument to methods that don't use it; r=mfinkle 2011-08-23 17:45:10 +01:00
Alfred Kayser
295fdd3f3a Bug 529733 - Crash in nsCacheMetaData::SetElement; r=michal,jduell 2011-08-23 17:45:10 +01:00
Geoff Brown
5793c55ec7 Bug 679602 - Improve robustness of devicemanagerADB: check for adb, remote cp; r=jmaher 2011-08-23 17:45:10 +01:00
Lucas Rocha
bb7c307a39 Bug 668760 - Show message when there are no desktop tabs to display (r=mbrubeck) 2011-08-23 09:16:33 -07:00
Lucas Rocha
c07fa841b8 Bug 668760 - Refactor get desktop tabs to receive weave engine as argument (r=mbrubeck)
This is necessary to be able to know whether we're loading sync desktop tabs
from a functional/configured sync process or not.
2011-08-23 09:16:09 -07:00
Lucas Rocha
57e277cdee Bug 668760 - Factor out method to get weave engine (r=mbrubeck) 2011-08-23 09:16:03 -07:00
Lucas Rocha
aed526341f Bug 668760 - Add message label element to remotetabs-list (r=mbrubeck)
The label is only visible when the remotetabs-list has a "message" attribute.
This UI should be used to show messages on the tabs list.
2011-08-23 09:15:48 -07:00
Lucas Rocha
e72b7a5bd0 Bug 668760 - Optimize historylist's and remotetabslist's CSS [r=mbrubeck]
Remove unnecessary child selectors, remote explicit tag names from classes, and
take advantage of inheritance.
2011-08-23 09:15:18 -07:00
Mounir Lamouri
c614189899 Merging mozilla-central into mozilla-inbound. 2011-08-23 17:51:40 +02:00
Mounir Lamouri
613228ae2d Merging mozilla-inbound into mozilla-central. 2011-08-23 17:50:45 +02:00
Jacek Caban
87e30c7819 Bug 680872 - PolyIC.cpp fails to compile on mingw-w64 r=jorendorff 2011-08-23 17:36:04 +02:00
Jacek Caban
0cbb10bd5d Bug 670093 - gfx/2d fails to compile on mingw r=bas.schouten 2011-08-23 17:35:13 +02:00
Neil Deakin
be1217eb3b Bug 666256, another fix needed 2011-08-23 10:31:09 -04:00
Mike Hommey
531e9957c1 Bug 680642 - Don't enable YARR JIT on MIPS, as the implementation is missing. r=dmandelin 2011-08-23 16:13:55 +02:00
Mike Hommey
8aeec92c04 Bug 670719 - Only add -DENABLE_JIT=1 to CXXFLAGS if any of trace/method/yarr jit is enabled. r=dmandelin 2011-08-23 16:13:21 +02:00
Mike Hommey
a41c1ed56d Bug 681203 - Bind all symbols when dynamic symbol lookup is not supported. r=mwu 2011-08-23 16:12:44 +02:00
Neil Deakin
fb6a7090ae Bug 666256, qt fix 2011-08-23 09:30:39 -04:00
Olli Pettay
883279b75a Bug 680687, Follow COM rules - keep strong ref to object, r=jst 2011-08-23 15:57:29 +03:00
Marco Bonardo
fd2c793a9a Bug 680550 - Handle removeAllPages more sanely in tests.
r=dietrich
2011-08-23 14:34:15 +02:00
Jonathan Kew
addae4eaec bug 680037 - check calls for failure before using the results in nsFontFaceLoader::LoadTimerCallback. r=jdaggett 2011-08-23 13:33:51 +01:00
Jonathan Kew
4bc55811dc bug 637179 - use PRUint32 for character/cluster indexes to avoid build warnings. r=jwatt 2011-08-23 13:31:56 +01:00
Jonathan Kew
a20455ee43 bug 680717 - use the correct loop index variable when parsing cmap VS subtable. r=jdaggett 2011-08-23 13:28:05 +01:00
Ed Morley
db9df7db64 Bug 680864 - Part B - Remove IPC_MESSAGE_ENABLE_RPC/BASE_API defines + histogrammer leftovers; r=cjones 2011-08-23 11:43:04 +01:00
Ed Morley
e35bf93fb1 Bug 680864 - Remove CHROMIUM_MOZILLA_BUILD ifdefs, since always defined and #ifndef codepaths broken anyway; r=cjones 2011-08-23 11:43:04 +01:00
Marco Bonardo
20cfe9e21b Backout changeset 1720b28e3115 (Bug 678420) since it caused an exponential increase of Win M4 failures. 2011-08-23 11:05:14 +02:00
Mounir Lamouri
775fa90a3b Merging mozilla-inbound into mozilla-central. 2011-08-23 10:19:26 +02:00
Michael Ventnor
8af7fc4898 Bug 446569 - Implement prefixed CSS3 columns shorthand r=dbaron 2011-08-23 14:18:22 +10:00
Matt Brubeck
b614b90092 Bug 624552 - Disable Firefox Sync temporarily when master password entry fails. [r=mfinkle] 2011-08-22 20:45:30 -07:00
Justin Lebar
7e582ce643 Bug 680257 - Always call nsDocShell::ScrollToAnchor on short-circuited loads, so as to make sure the target pseudo-class is updated correctly. r=bz 2011-08-22 22:39:37 -04:00
Ehsan Akhgari
91849b5966 Backout changeset e57b659ee5dd (bug 678842) because the test is wrong, and it should never pass 2011-08-22 22:27:47 -04:00
Michael Wu
ab15475a72 Bug 676192 - Remove kHashEnumerateRemove and make nsHashtableEnumFunc return PRBool, r=bsmedberg 2011-08-22 19:15:54 -07:00
Michael Wu
927aee119a Bug 671190 - Stop using BOGUS_DEFAULT_*_PREF_VALUE in prefapi.cpp and cleanup PRBool abuse, r=bsmedberg 2011-08-22 19:15:52 -07:00
Makoto Kato
ba6d74acf5 Bug 680818 - HAVE_STDCALL is unnecessary on Win64. r=khuey 2011-08-23 09:49:10 +09:00
Brian Birtles
2a9416a055 Bug 562815 part 7 - Don't cache display animation values (due to bug 536660); r=dholbert
--HG--
extra : rebase_source : ddd0350c570dd101960901279e2411e672b05625
2011-08-23 08:34:16 +09:00
Brian Birtles
b1f72bbd99 Bug 562815 part 6 - Check if property is cached in rule tree; r=dbaron
--HG--
extra : rebase_source : 9a7d2388bd00e2c8177cebc9d2a1339626cdd3ab
2011-08-23 08:34:12 +09:00
Brian Birtles
cc60dabff6 Bug 562815 part 5 - Split StyleWithDeclarationAdded; r=dbaron
--HG--
extra : rebase_source : 25e3f4591866e1438eca99f83c6ca3597508344f
2011-08-23 08:34:07 +09:00
Brian Birtles
656057547b Bug 562815 part 3 - Add context-sensitive flag to style animation resolution; r=dholbert
--HG--
extra : rebase_source : 2914f301d6ce7dc95134ffdd84de29d4408b7917
2011-08-23 08:34:03 +09:00
Brian Birtles
543dcb695b Bug 562815 part 2b - Add even more tests; r=dholbert
--HG--
extra : rebase_source : bfe07feecc89dc9a882c39d7b5111f71d1f6f57a
2011-08-23 08:33:58 +09:00
Brian Birtles
9ed6935d93 Bug 562815 part 2a - Add further tests; r=dholbert
--HG--
extra : rebase_source : 6646562047657bda34547d01b784ddafa2b6f583
2011-08-23 08:33:52 +09:00
Brian Birtles
b737454f44 Bug 562815 part 1 - refactor test_smilChangeAfterFrozen.xhtml; r=dholbert
--HG--
extra : rebase_source : 4fc6cafc6e771037f2fabc7fb2f633340fdd1811
2011-08-23 08:33:46 +09:00
Michal Novotny
c04a96be6b Bug 681085 - sync cache map file after writing the header 2011-08-23 00:24:23 +02:00
Matt Brubeck
6ed926f6a2 Back out bug 679864 (e6a4dd7f9906 - 7a9079ac5718) because of Win debug M1 failures 2011-08-22 13:23:21 -07:00
Jonathan Griffin
3b4736a2c7 Bug 678420 - target div during back nav, r=ehsan, a=testonly 2011-08-22 11:17:37 -07:00
Ben Turner
f08e736535 Back out bug 653361 for causing plugin crashes (bug 680862). 2011-08-23 11:00:25 -07:00