summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-2022-63/+230
|\ | | | | | | | | | | | | qtscript-jsc-backend Conflicts: src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri
| * Extend testUndoBlock() with a single command block insertmae2009-08-201-0/+19
| | | | | | | | | | | | Test a newly discovered bug when a beginEditBlock()/endEditoBlock() contains only one single insertion command. It should still be treated as an undo block of its own.
| * split the qstringbuilder autotest into fourhjk2009-08-2015-43/+38
| | | | | | | | | | Some S60 and WinCE test scripts prefer to have only one executable per directory.
| * Autotest: this test is not passing: so show that.Thiago Macieira2009-08-201-0/+7
| | | | | | | | | | | | | | The problem is that this the test is running into a false positive. It thinks it's ok, but it isn't. So show the problem.
| * Autotest: remove unreliable test.Thiago Macieira2009-08-201-15/+0
| | | | | | | | | | | | | | | | This test required Qt to be built in debug mode. But there's no way of checking that from the autotest: some of our test machines build Qt in release mode but the tests in debug mode. So we don't test the Q_ASSERT.
| * Autotest: add one more check for operator==Thiago Macieira2009-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | I'm running out of ideas as to why MSVC.NET 2003 cannot do this test: baseptr == aData If I do baseptr.data() == aData, it works. And the operator== that it should be calling does exactly that. So my only clue so far is that it's calling some other operator== -- which doesn't make sense, since there is no other.
| * Fix literal IPv6 hostname resolution in QHostInfo.Thiago Macieira2009-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | With the series of commits ending in ff1280178, I made QUrl::toAce fail if the parameter is not a well-formed hostname (i.e., if it violates STD3). IPv6 hostnames do, so we can't preemptively run ToACE. Instead, delay running ToACE until we've tried literal matching. Reviewed-by: TrustMe
| * Fix QVariant::toFloat() and QVariant::toRealOlivier Goffart2009-08-201-1/+37
| | | | | | | | Reviewed-by: Thierry
| * QNAM HTTP PipeliningMarkus Goetz2009-08-202-3/+127
| | | | | | | | | | | | | | | | | | | | HTTP Pipelining should improve the performance of HTTP requests for high latency network links. Since some servers/proxies could have problems with it, it is disabled by default. Set the HttpPipeliningAllowed attribute of a QNetworkRequest to enable it for that request. Reviewed-by: Thiago
* | use a list to keep track of registered script valuesKent Hansen2009-08-201-2/+0
| | | | | | | | Get rid of the hash.
* | QEXPECT_FAIL was removed.Jedrzej Nowacki2009-08-201-3/+10
| | | | | | | | | | | | | | Autotest's correction after 3062cd6395ba13746aea452eb53447d915184e2d Column numbers are calculated corectly Reviewed-by: Kent Hansen
* | make QScriptEngine::objectById() workKent Hansen2009-08-201-1/+3
| | | | | | | | | | It needs to work even when there is no public QScriptValue that holds a reference to the object.
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-2019-4/+676
|\ \ | |/ | | | | qtscript-jsc-backend
| * Add some more tests for QQuaternion multiplicationRhys Weatherley2009-08-201-0/+9
| | | | | | | | Reviewed-by: trustme
| * Make the license test pass.Frans Englich2009-08-1918-4/+667
| | | | | | | | | | | | | | This is partly done to address a review comment for S60. Reviewed-by: Marius SO Reviewed-by: Paul
* | invalidate wrapped JSC::JSValue when script engine is deletedKent Hansen2009-08-191-3/+1
| | | | | | | | Otherwise we will crash if someone tries to do something with the value.
* | Fix QScriptValue::objectId().Jedrzej Nowacki2009-08-191-1/+0
| | | | | | | | | | | | | | QScriptValue id were made persistent. It depands on JSC:JSValue JSCell pointer not on QScriptValuePrivate attr. Reviewed-by: Kent Hansen
* | add more detailed tests for QRegExp <--> JS RegExp conversionKent Hansen2009-08-191-1/+19
| |
* | remove expected failureKent Hansen2009-08-191-1/+0
| | | | | | | | Works as of commit 5bca43cca3ac90429e3f9263d0d7ea8c9eb164d4.
* | add test to make sure a JavaScript object's ID persistsKent Hansen2009-08-191-0/+10
| | | | | | | | | | | | Even if the QScriptValue is destroyed, the underlying ID should not change; e.g. if a new QScriptValue is created and wraps the same object, the ID should be the same as before.
* | update expected output to match that of JSC-based qtscript back-endKent Hansen2009-08-191-2/+2
| | | | | | | | Output of backtrace has changed slightly (e.g. "at" instead of "@").
* | make QScriptEngine::isEvaluating() work for top-level evaluationKent Hansen2009-08-191-0/+24
| | | | | | | | | | | | Since QScriptEngine::evaluate() doesn't create a new stack frame anymore, we need to use a dedicated variable to keep track of whether the engine is currently evaluating or not.
* | move the builtinFunctionNames test to qscriptengine autotestsKent Hansen2009-08-192-198/+175
| | | | | | | | | | | | | | With the JSC-based back-end, stack frames aren't created when calling any of the built-in ECMA functions, so we can't base the test on that. Instead, just look up the "name" property of each function and check that it has the expected value.
* | only add qtscript autotests if qt is configured appropriatelyKent Hansen2009-08-191-13/+15
| |
* | make moc autotest compile without qtscriptKent Hansen2009-08-192-1/+4
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-19122-419/+531
|\ \ | |/ | | | | qtscript-jsc-backend
| * Move math3d unit tests up one level to tests/autoRhys Weatherley2009-08-1812-74/+14
| | | | | | | | | | | | | | | | Some of the platform test infrastructure assumes that all unit tests are sub-directories under tests/auto, and the tests/auto/math3d sub-directory was confusing that infrastructure. Reviewed-by: trustme
| * Autotest: cosmetic: change trolltech.com to qt.nokia.comThiago Macieira2009-08-181-27/+27
| |
| * Autotest: update the trolltech.com URLs to nokia.com properly.Thiago Macieira2009-08-181-27/+27
| |
| * Autotest: Revert 96b6a3c9cd8 in tst_qnetworkcookiejarThiago Macieira2009-08-181-13/+13
| | | | | | | | | | The change of URLs in Qt broke the tests that operated on URLs. This wasn't properly done, so revert to the last working values.
| * Autotest: don't check Qt3Support and QtCLucene for global statics.Thiago Macieira2009-08-181-1/+9
| | | | | | | | | | We won't fix any issues in those libraries anyway, so don't waste time checking.
| * Autotest: accept that the platform's UTF-8 codec can be buggy.Thiago Macieira2009-08-181-1/+10
| | | | | | | | | | We shouldn't fail in our autotests because the platform is buggy. But note the problem. We should report the bugs upstream...
| * Autotest: update uic baselines after license header update.Thiago Macieira2009-08-18100-287/+342
| | | | | | | | | | The license header update in e12a03d5 changed the .ui templates, but not the baselines in all cases.
| * Autotest: unbreak test after overeager trolltech.com -> qt.nokia.com replacementThiago Macieira2009-08-181-2/+2
| |
| * Added a behaviour parameter to QXmlStreamReader::readElementTextThorbjørn Lindeijer2009-08-181-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes the function a bit more useful, since previously it was only safe to use if you were sure that it would not encounter an unexpected child element, or if you would be alright with canceling the parser on such an occurrence. Now it is also possible to have it ignore any unexpected child elements, or to have it include the text found in any child elements. Task-number: 231938 Reviewed-by: mae
| * Added two convenience functions to QXmlStreamReaderThorbjørn Lindeijer2009-08-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QXmlStreamReader::readNextStartElement reads until the next start element within the current element, or returns false when no such element is encountered before the end element is reached. It simplifies the common case of iterating over the elements in an XML document. QXmlStreamReader::skipCurrentElement reads until the end element of the current element, skipping any child elements. This functionality was requested in two tasks, and a similar function 'readUnknownElement' was present in Qt's stream reader example. Autotest is included, example and documentation have been updated. Task-number: 238793 Reviewed-by: mae
| * QGraphicsView test fixGabriel de Dietrich2009-08-181-6/+6
| | | | | | | | Reviewed-by: Olivier
| * Fix autotest: on windows, timers are not accurate enoughThierry Bastian2009-08-181-2/+4
| |
| * Autotest: Be very pedant about the tests. There's at least one compilerThiago Macieira2009-08-181-4/+33
| | | | | | | | where it breaks, so let's find out where.
| * Fix autotest: removed useless debug tracesThierry Bastian2009-08-181-1/+0
| |
* | Fix the QScriptContext::argumentsObject and QScriptContext::argument for js ↵Olivier Goffart2009-08-181-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | functions On js functions, if the number of arguments is different from the number of expected arguments, they are located in different place in the stackframe. We need to call the JSC functions that take that into account. Test is the backtrace test Reviewed-by: Kent Hansen
* | Fix the line numbers on the backtraceOlivier Goffart2009-08-181-3/+6
| | | | | | | | | | | | | | The returnPC points to the opcode after the call, but we want the opcode right before to compute the line number. Reviewed-by: Kent Hansen
* | implement getter/setter proxying for Global Object and activation objectKent Hansen2009-08-181-0/+25
| |
* | adopt same ownership relationship of scriptengine agents as in old back-endKent Hansen2009-08-181-7/+29
| | | | | | | | The engine owns its agents, and also knows when they are deleted.
* | Few autotest QEXCPECT_FAIL markup.Jedrzej Nowacki2009-08-181-39/+4
| | | | | | | | | | | | | | Some test from qscriptengineagent were marked as excpected_fail. It should be easier to find regression. Reviewed-by: Kent Hansen
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-1817-548/+79
|\ \ | |/ | | | | | | | | | | | | | | | | qtscript-jsc-backend Conflicts: src/script/qscriptclass.cpp src/script/qscriptcontext.cpp src/script/qscriptengine.cpp src/script/qscriptvalue.cpp
| * tst_QTableView::task259308_scrollVerticalHeaderSwappedSections fails.Gabriel de Dietrich2009-08-181-0/+1
| | | | | | | | | | | | | | | | The QTableView scrolled down after the sections swap. Setting the current index to the topmost visual element fixes the issue. Reviewed-by: Thierry
| * Fixes qmake -tp vcBill King2009-08-181-7/+13
| | | | | | | | | | | | | | qmake -tp vc (rightfully) borks when it tries to include .pros that it shouldn't be, based upon platform. Reviewed-by: Rohan McGovern
| * cut down on real codeOswald Buddenhagen2009-08-1714-541/+37
| | | | | | | | | | | | | | | | remove all c++ code which is not part of the critical test data. as a result, remove the license headers where the remaining text cannot be reasonably considered copyright-worthy any more. this is a somewhat persistent solution to the ever-changing license headers screwing up the tests.
| * Add autotest to make sure we receive the QVariantAnimation::valueChangedThierry Bastian2009-08-171-0/+28
| | | | | | | | Reviewed-by: ogoffart