? Success

User tests: Successful: Unsuccessful:

avatar sovainfo
sovainfo
28 Mar 2014

Very unlikely this is intentionally.

avatar sovainfo sovainfo - open - 28 Mar 2014
avatar betweenbrain
betweenbrain - comment - 28 Mar 2014

It may very well be, but I'm not 100% certain. We'll need a tracker item and testing for sure, just to be on the safe side.

Have you tested an confirmed this code to be incorrect?

avatar sovainfo
sovainfo - comment - 28 Mar 2014

No, don't know how to test.
Pretty sure it is wrong:

  • set should have a value, not providing it should have been documented.
  • all surrounding statements use the get

    No-brainer to me!
avatar Bakual
Bakual - comment - 28 Mar 2014

It's indeed a typo. Unfortunately you can't test it as nothing is really broken.
That is because the setState method is returning the old value and thus the correct value is passed to the model state. :smile:

Going to merge this.

avatar Bakual Bakual - change - 28 Mar 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-03-28 22:41:06
avatar Bakual Bakual - close - 28 Mar 2014
avatar Bakual Bakual - close - 28 Mar 2014
avatar sovainfo sovainfo - head_ref_deleted - 28 Mar 2014
avatar sovainfo sovainfo - change - 29 Mar 2014
Title
Probably a typo
Fix for unintended use of setState, changed to getState
avatar puneet0191 puneet0191 - reference | 2e1fc17 - 30 Mar 14
avatar Bakual Bakual - reference | b425a42 - 12 May 14

Add a Comment

Login with GitHub to post a comment