|
|
Chromium Code Reviews|
Created:
4 years, 6 months ago by karandeepb Modified:
4 years, 6 months ago Reviewers:
tapted CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test.
NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The
reason for the failure is that the expectation for [ns_window alphaValue] is a
double value, while Widget::SetOpacity(..) takes a float value. Changing the
expectation to a float literal fixes the test.
BUG=607403
Committed: https://crrev.com/60f03b5ff77766b46bbec2c564f3cee40fbe5968
Cr-Commit-Position: refs/heads/master@{#397318}
Patch Set 1 #
Messages
Total messages: 19 (9 generated)
Description was changed from ========== Fix NativeWidgetMacTest.ChangeOpacity ========== to ========== MacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test. NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The reason for the failure is that the expectation for [ns_window alphaValue] is a double value, while Widget::SetOpacity(..) takes a float value. Changing the expectation to a float literal fixes the test. BUG=607403 ==========
karandeepb@chromium.org changed reviewers: + tapted@chromium.org
PTAL Trent. Thanks.
lgtm (also wow - EXPECT_DOUBLE_EQ has some epsilon check - it's bonkers that the epsilon amount is too small to account for the float -> double conversion :/. There is EXPECT_FLOAT_EQ, but I think NSWindow alphaValue is double, so we'd have the same problem). bleh/
On 2016/06/02 00:08:39, tapted wrote: > lgtm > > (also wow - EXPECT_DOUBLE_EQ has some epsilon check - it's bonkers that the > epsilon amount is too small to account for the float -> double conversion :/. > There is EXPECT_FLOAT_EQ, but I think NSWindow alphaValue is double, so we'd > have the same problem). bleh/ Yeah alphaValue is a CGFloat which can be a float/double depending on the platform.
The CQ bit was checked by karandeepb@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2027143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2027143002/1
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by karandeepb@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2027143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2027143002/1
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by karandeepb@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2027143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2027143002/1
Message was sent while issue was closed.
Description was changed from ========== MacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test. NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The reason for the failure is that the expectation for [ns_window alphaValue] is a double value, while Widget::SetOpacity(..) takes a float value. Changing the expectation to a float literal fixes the test. BUG=607403 ========== to ========== MacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test. NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The reason for the failure is that the expectation for [ns_window alphaValue] is a double value, while Widget::SetOpacity(..) takes a float value. Changing the expectation to a float literal fixes the test. BUG=607403 ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== MacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test. NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The reason for the failure is that the expectation for [ns_window alphaValue] is a double value, while Widget::SetOpacity(..) takes a float value. Changing the expectation to a float literal fixes the test. BUG=607403 ========== to ========== MacViews: Fix failing NativeWidgetMacTest.ChangeOpacity test. NativeWidgetMacTest.ChangeOpacity test regressed in crrev.com/2009333002. The reason for the failure is that the expectation for [ns_window alphaValue] is a double value, while Widget::SetOpacity(..) takes a float value. Changing the expectation to a float literal fixes the test. BUG=607403 Committed: https://crrev.com/60f03b5ff77766b46bbec2c564f3cee40fbe5968 Cr-Commit-Position: refs/heads/master@{#397318} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/60f03b5ff77766b46bbec2c564f3cee40fbe5968 Cr-Commit-Position: refs/heads/master@{#397318} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
