Changeset 60583 in webkit for trunk/JavaScriptCore/qt/tests
- Timestamp:
- Jun 2, 2010, 5:27:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/qt/tests/qscriptengine/tst_qscriptengine.cpp
r59503 r60583 36 36 37 37 private slots: 38 void newObject(); 38 39 void globalObject(); 39 40 void evaluate(); … … 55 56 QVERIFY2(engine.evaluate("1+1").isValid(), "the expression should be evaluated and an valid result should be returned"); 56 57 QVERIFY2(engine.evaluate("ping").isValid(), "Script throwing an unhandled exception should return an exception value"); 58 } 59 60 void tst_QScriptEngine::newObject() 61 { 62 QScriptEngine engine; 63 QScriptValue object = engine.newObject(); 64 QVERIFY(object.isObject()); 65 QVERIFY(object.engine() == &engine); 66 QVERIFY(!object.isError()); 67 QVERIFY(!object.equals(engine.newObject())); 68 QVERIFY(!object.strictlyEquals(engine.newObject())); 69 QCOMPARE(object.toString(), QString::fromAscii("[object Object]")); 57 70 } 58 71
Note:
See TracChangeset
for help on using the changeset viewer.