Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix bug in v4 strict equality.
Change-Id: I184065e0b7c8c6536f2081b9bf03e98992a4c9fe Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
- Loading branch information
Michael Brasser
authored and
Qt by Nokia
committed
Mar 15, 2012
1 parent
49b451d
commit 20ffaaf
Showing
9 changed files
with
196 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import QtQuick 2.0 | ||
|
||
QtObject { | ||
property QtObject myprop1: null | ||
property QtObject myprop2: QtObject {} | ||
property real zero: 0 | ||
property bool falseProp: false | ||
|
||
property bool test1: myprop1 == false | ||
property bool test2: myprop1 == null | ||
property bool test3: 5 == myprop1 | ||
property bool test4: null == myprop1 | ||
property bool test5: myprop1 != false | ||
property bool test6: myprop1 != null | ||
property bool test7: 5 != myprop1 | ||
property bool test8: null != myprop1 | ||
|
||
property bool test9: myprop2 == false | ||
property bool test10: myprop2 == null | ||
property bool test11: 5 == myprop2 | ||
property bool test12: null == myprop2 | ||
property bool test13: myprop2 != false | ||
property bool test14: myprop2 != null | ||
property bool test15: 5 != myprop2 | ||
property bool test16: null != myprop2 | ||
|
||
property bool test17: myprop1 == myprop1 | ||
property bool test18: myprop1 != myprop1 | ||
property bool test19: myprop1 == myprop2 | ||
property bool test20: myprop1 != myprop2 | ||
property bool test21: myprop2 == myprop2 | ||
property bool test22: myprop2 != myprop2 | ||
|
||
property bool test23: myprop1 == "hello" | ||
property bool test24: myprop1 != "hello" | ||
property bool test25: myprop2 == "hello" | ||
property bool test26: myprop2 != "hello" | ||
|
||
property bool test27: falseProp == zero | ||
property bool test28: falseProp != zero | ||
property bool test29: falseProp == 1 | ||
property bool test30: falseProp != 1 | ||
property bool test31: true == zero | ||
property bool test32: true != zero | ||
property bool test33: true == 1 | ||
property bool test34: true != 1 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import QtQuick 2.0 | ||
|
||
QtObject { | ||
property QtObject myprop1: null | ||
property QtObject myprop2: QtObject {} | ||
property real zero: 0 | ||
property bool falseProp: false | ||
|
||
property bool test1: myprop1 === false | ||
property bool test2: myprop1 === null | ||
property bool test3: 5 === myprop1 | ||
property bool test4: null === myprop1 | ||
property bool test5: myprop1 !== false | ||
property bool test6: myprop1 !== null | ||
property bool test7: 5 !== myprop1 | ||
property bool test8: null !== myprop1 | ||
|
||
property bool test9: myprop2 === false | ||
property bool test10: myprop2 === null | ||
property bool test11: 5 === myprop2 | ||
property bool test12: null === myprop2 | ||
property bool test13: myprop2 !== false | ||
property bool test14: myprop2 !== null | ||
property bool test15: 5 !== myprop2 | ||
property bool test16: null !== myprop2 | ||
|
||
property bool test17: myprop1 === myprop1 | ||
property bool test18: myprop1 !== myprop1 | ||
property bool test19: myprop1 === myprop2 | ||
property bool test20: myprop1 !== myprop2 | ||
property bool test21: myprop2 === myprop2 | ||
property bool test22: myprop2 !== myprop2 | ||
|
||
property bool test23: myprop1 === "hello" | ||
property bool test24: myprop1 !== "hello" | ||
property bool test25: myprop2 === "hello" | ||
property bool test26: myprop2 !== "hello" | ||
|
||
property bool test27: falseProp === zero | ||
property bool test28: falseProp !== zero | ||
property bool test29: falseProp === 1 | ||
property bool test30: falseProp !== 1 | ||
property bool test31: true === zero | ||
property bool test32: true !== zero | ||
property bool test33: true === 1 | ||
property bool test34: true !== 1 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters