Changeset 141107 in webkit
- Timestamp:
- Jan 29, 2013 6:48:41 AM (11 years ago)
- Location:
- trunk/Source/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/qt/ChangeLog
r141040 r141107 1 2013-01-29 Michael Brüning <michael.bruning@digia.com> 2 3 [Qt][WK1] Fix QObject Bridge tests expected output. 4 https://bugs.webkit.org/show_bug.cgi?id=107827 5 6 Reviewed by Simon Hausmann. 7 8 The "not a function" TypeError now includes the call that caused the error. 9 Correct expected values accordingly. 10 11 * tests/qobjectbridge/tst_qobjectbridge.cpp: 12 (tst_QObjectBridge::connectAndDisconnect): 13 1 14 2013-01-28 Huang Dongsung <luxtella@company100.net> 2 15 -
trunk/Source/WebKit/qt/tests/qobjectbridge/tst_qobjectbridge.cpp
r134236 r141107 1573 1573 QString ret = evalJS("(function() { }).connect()", type); 1574 1574 QCOMPARE(type, sError); 1575 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function "));1575 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function (evaluating '(function() { }).connect()')")); 1576 1576 } 1577 1577 { … … 1579 1579 QString ret = evalJS("var o = { }; o.connect = Function.prototype.connect; o.connect()", type); 1580 1580 QCOMPARE(type, sError); 1581 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function "));1581 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function (evaluating 'o.connect()')")); 1582 1582 } 1583 1583 … … 1586 1586 QString ret = evalJS("(function() { }).connect(123)", type); 1587 1587 QCOMPARE(type, sError); 1588 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function "));1588 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function (evaluating '(function() { }).connect(123)')")); 1589 1589 } 1590 1590 { … … 1592 1592 QString ret = evalJS("var o = { }; o.connect = Function.prototype.connect; o.connect(123)", type); 1593 1593 QCOMPARE(type, sError); 1594 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function "));1594 QCOMPARE(ret, QLatin1String("TypeError: 'undefined' is not a function (evaluating 'o.connect(123)')")); 1595 1595 } 1596 1596
Note: See TracChangeset
for help on using the changeset viewer.