tests/auto/qscriptable/tst_qscriptable.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the test suite of the Qt Toolkit.
     7 ** This file is part of the test suite of the Qt Toolkit.
     8 **
     8 **
   330         QCOMPARE(ret.toQObject(), (QObject *)&m_scriptable);
   330         QCOMPARE(ret.toQObject(), (QObject *)&m_scriptable);
   331     }
   331     }
   332     {
   332     {
   333         QVERIFY(!m_scriptable.oofThisObject().isValid());
   333         QVERIFY(!m_scriptable.oofThisObject().isValid());
   334         m_engine.evaluate("o.oof = 123");
   334         m_engine.evaluate("o.oof = 123");
   335         QEXPECT_FAIL("", "QTBUG-5749: Setter doesn't get called when it's in the prototype", Continue);
       
   336         QVERIFY(m_scriptable.oofThisObject().strictlyEquals(m_engine.evaluate("o")));
   335         QVERIFY(m_scriptable.oofThisObject().strictlyEquals(m_engine.evaluate("o")));
   337     }
   336     }
   338     {
   337     {
   339         m_engine.evaluate("scriptable.oof = 123");
   338         m_engine.evaluate("scriptable.oof = 123");
   340         QVERIFY(m_scriptable.oofThisObject().strictlyEquals(m_engine.evaluate("scriptable")));
   339         QVERIFY(m_scriptable.oofThisObject().strictlyEquals(m_engine.evaluate("scriptable")));