Changeset 56686 in webkit for trunk/JavaScriptCore/qt/tests
- Timestamp:
- Mar 28, 2010, 3:03:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/qt/tests/qscriptengine/tst_qscriptengine.cpp
r56333 r56686 36 36 37 37 private slots: 38 void globalObject(); 38 39 void evaluate(); 39 40 void collectGarbage(); … … 51 52 QVERIFY2(engine.evaluate("1+1").isValid(), "the expression should be evaluated and an valid result should be returned"); 52 53 QVERIFY2(engine.evaluate("ping").isValid(), "Script throwing an unhandled exception should return an exception value"); 54 } 55 56 void tst_QScriptEngine::globalObject() 57 { 58 QScriptEngine engine; 59 QScriptValue global = engine.globalObject(); 60 QScriptValue self = engine.evaluate("this"); 61 QVERIFY(global.isObject()); 62 QVERIFY(engine.globalObject().equals(engine.evaluate("this"))); 63 QEXPECT_FAIL("", "strictlyEquals is broken - bug 36600 in bugs.webkit.org", Continue); 64 QVERIFY(engine.globalObject().strictlyEquals(self)); 53 65 } 54 66
Note:
See TracChangeset
for help on using the changeset viewer.