Robert Mathias Marmorstein | 14 Mar 2012 19:09
Picon
Favicon
Gravatar

Review Request: Revert a commit that breaks TestDocumentLayout

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104272/

Review request for KOffice.
By Robert Mathias Marmorstein.

Description

This one-line change seems to have broken the kword-frames-TestDocumentLayout unit test. I don't know whether the behaviour of Qt has changed or if the cursorToX function simply doesn't work as expected, but the test passes after reverting this change.

Testing

Everything builds, compiles, runs, and passes the same unit tests (plus one more!) if we revert the change. However, it's possible that it's the test that's wrong. I don't understand the layout algorithm well enough to know for sure.

Diffs

  • kword/part/frames/KWTextDocumentLayout.cpp (fc5173d)

View Diff

_______________________________________________
koffice-devel mailing list
koffice-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
Robert Mathias Marmorstein | 17 Mar 2012 02:08
Picon
Favicon
Gravatar

Re: Review Request: Revert a commit that breaks TestDocumentLayout

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104272/

Review request for KOffice and Thomas Zander.
By Robert Mathias Marmorstein.

Updated March 17, 2012, 1:08 a.m.

Description

This one-line change seems to have broken the kword-frames-TestDocumentLayout unit test. I don't know whether the behaviour of Qt has changed or if the cursorToX function simply doesn't work as expected, but the test passes after reverting this change.

Testing

Everything builds, compiles, runs, and passes the same unit tests (plus one more!) if we revert the change. However, it's possible that it's the test that's wrong. I don't understand the layout algorithm well enough to know for sure.

Diffs

  • kword/part/frames/KWTextDocumentLayout.cpp (fc5173d)

View Diff

_______________________________________________
koffice-devel mailing list
koffice-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
Thomas Zander | 17 Mar 2012 10:13
Picon
Favicon

Re: Review Request: Revert a commit that breaks TestDocumentLayout

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104272/

Ship it!

The change had to do with a right-to-left layout where +1 would not go to the visible right, but to the left. If this fixes the unit test, then please commit. I'll make a note to find the case where the old code broke for and add a unit test for that one too, so a solution can be found for all items :)

- Thomas


On March 17th, 2012, 1:08 a.m., Robert Mathias Marmorstein wrote:

Review request for KOffice and Thomas Zander.
By Robert Mathias Marmorstein.

Updated March 17, 2012, 1:08 a.m.

Description

This one-line change seems to have broken the kword-frames-TestDocumentLayout unit test. I don't know whether the behaviour of Qt has changed or if the cursorToX function simply doesn't work as expected, but the test passes after reverting this change.

Testing

Everything builds, compiles, runs, and passes the same unit tests (plus one more!) if we revert the change. However, it's possible that it's the test that's wrong. I don't understand the layout algorithm well enough to know for sure.

Diffs

  • kword/part/frames/KWTextDocumentLayout.cpp (fc5173d)

View Diff

_______________________________________________
koffice-devel mailing list
koffice-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
Robert Mathias Marmorstein | 18 Mar 2012 05:59
Picon
Favicon
Gravatar

Re: Review Request: Revert a commit that breaks TestDocumentLayout

This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104272/

On March 17th, 2012, 9:13 a.m., Thomas Zander wrote:

The change had to do with a right-to-left layout where +1 would not go to the visible right, but to the left. If this fixes the unit test, then please commit. I'll make a note to find the case where the old code broke for and add a unit test for that one too, so a solution can be found for all items :)
Sounds good. I'll push it, then.

- Robert Mathias


On March 17th, 2012, 1:08 a.m., Robert Mathias Marmorstein wrote:

Review request for KOffice and Thomas Zander.
By Robert Mathias Marmorstein.

Updated March 17, 2012, 1:08 a.m.

Description

This one-line change seems to have broken the kword-frames-TestDocumentLayout unit test. I don't know whether the behaviour of Qt has changed or if the cursorToX function simply doesn't work as expected, but the test passes after reverting this change.

Testing

Everything builds, compiles, runs, and passes the same unit tests (plus one more!) if we revert the change. However, it's possible that it's the test that's wrong. I don't understand the layout algorithm well enough to know for sure.

Diffs

  • kword/part/frames/KWTextDocumentLayout.cpp (fc5173d)

View Diff

_______________________________________________
koffice-devel mailing list
koffice-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

Gmane