(order, f)
| 75 | |
| 76 | // Test non-primitive values and watch for valueOf call order. |
| 77 | function TestNonPrimitive(order, f) { |
| 78 | var result = ""; |
| 79 | var x = { valueOf: function() { result += "x"; } }; |
| 80 | var y = { valueOf: function() { result += "y"; } }; |
| 81 | f(x, y); |
| 82 | assertEquals(order, result); |
| 83 | } |
| 84 | |
| 85 | TestNonPrimitive("xy", MaxLT); |
| 86 | TestNonPrimitive("xy", MaxLE); |
no test coverage detected
searching dependent graphs…