| load("./driver/driver.js"); |
| for (var i = 0; i < 150; i++) { |
| var shouldBeInDictionaryMode = foo; |
| var shouldNotBeInDictionaryMode = { |
| var types = findTypeForExpression(wrapper, "shouldBeInDictionaryMode"); |
| assert(types.globalTypeSet.structures.length === 1, "Should have one structure."); |
| assert(types.globalTypeSet.structures[0].isInDictionaryMode, "Should be in dictionary mode"); |
| types = findTypeForExpression(wrapper, "shouldNotBeInDictionaryMode"); |
| assert(types.globalTypeSet.structures.length === 1, "Should have one structure."); |
| assert(!types.globalTypeSet.structures[0].isInDictionaryMode, "Should not be in dictionary mode"); |