Closed Bug 377677 Opened 17 years ago Closed 17 years ago

tree.xml cleanup

Categories

(Toolkit :: UI Widgets, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 3 obsolete files)

- some methods should be 'private'
- currentIndex fails if there is no view
- treecols shouldn't inherit from tree-base
Blocks: 377253
Attached patch cleanup (obsolete) — Splinter Review
Attached patch right patch (obsolete) — Splinter Review
Attachment #261870 - Attachment is obsolete: true
Target Milestone: --- → mozilla1.9beta2
Attached patch now with testcases (obsolete) — Splinter Review
Attachment #261871 - Attachment is obsolete: true
Attachment #266213 - Attachment is obsolete: true
Attachment #276793 - Flags: review?(mano)
Comment on attachment 276793 [details] [diff] [review]
fix a bug with column widths in the tests

>+  // cursor navigation should not change the selection while editing
>+  synthesizeKeyExpectEvent("VK_DOWN", {}, tree, "!select", "key down with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key down while editing");
>+  synthesizeKeyExpectEvent("VK_UP", {}, tree, "!select", "key up with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key up while editing");
>+  synthesizeKeyExpectEvent("VK_PAGE_DOWN", {}, tree, "!select", "key page down with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key page down while editing");
>+  synthesizeKeyExpectEvent("VK_PAGE_UP", {}, tree, "!select", "key page up with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key page up while editing");
>+  synthesizeKeyExpectEvent("VK_HOME", {}, tree, "!select", "key home with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key home while editing");
>+  synthesizeKeyExpectEvent("VK_END", {}, tree, "!select", "key end with editing");
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key end while editing");
>+

could you put
>+  is(tree.editingRow == 0 && tree.editingColumn == ecolumn && tree.currentIndex == ci,
>+                true, testid + "key home while editing");

in a closure and save us some lines?

r=mano otherwise.
Attachment #276793 - Flags: review?(mano) → review+
Attached patch address commentSplinter Review
Comment on attachment 276793 [details] [diff] [review]
fix a bug with column widths in the tests

The tree changes are very minor, so not really a high priority, but would like to get these tests in.
Attachment #276793 - Flags: approval1.9?
Attachment #276793 - Flags: approval1.9? → approval1.9+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
I backed this all completely out (though cvs was dumb and left the test files in the tree instead of removing them like it said it had scheduled them for...) to see if it is the cause of the Tp regression.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
So, we had both a Tp and a Ts regression. Seems that the Tp regression happened far earlier than the Ts regression. The Ts regression turned out to be a tinderbox machine issue. So, sorry about backing you out. You should be fine for checking-in again once we have figured out the Tp regression (which we may have found now).
Enn, please reland this before Monday.
Checked this in again
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
bug 401548 - regression caused by this one perhaps?
Depends on: 401548
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: