summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* remove expected failures, mark expected failureKent Hansen2009-08-181-3/+1
|
* add a test for comparing Q{Object,Variant} wrappers from scriptKent Hansen2009-08-181-0/+15
| | | | | | | | | | | In the old back-end, this worked because we extended the ECMA comparison algorithm to treat QObject and QVariant wrappers specially. Instead of comparing the script objects (which would always fail), we compared the wrapped values (which could be the same in both wrappers). In the new JSC-based back-end this currently fails. We would have to add a hack (QtScript-specific ifdef) to JSC in order to support it.
* adopt variant-to-string conversion of the original qtscript back-endKent Hansen2009-08-171-0/+12
|
* test default scope chain after a new context has been pushedKent Hansen2009-08-171-0/+3
| | | | | The scope chain should contain the activation object and the Global Object.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-1734-19/+264
|\ | | | | | | qtscript-jsc-backend
| * Add support for the orientation of tiff imagesBenjamin Poulain2009-08-1728-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | The orientation tag was ignored for tiff images. The tag is now used to rotate the image before providing it to the user. The orientation of indexed an mono images is done completely manually. The orientation of other type is done in conjunction to the mirroring already performed by libtiff. Task-number: 258526 Reviewed-by: Samuel Rødal
| * Merge QGV delta from kinetic-declarativeui into master.Andreas Aardal Hanssen2009-08-171-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | New flag: QGraphicsItem::ItemNegativeZStacksBehindParent, which makes it easy to toggle stack-behind based on the value of Z alone. Add interface initializations to QGV classes. Add a simple internal focus policy to QGraphicsItem to allow derived items to be focusable without allowing clickfocus. Reviewed-by: Alexis
| * Transforms do not obey AnchorUnderMouse with viewport margins setGabriel de Dietrich2009-08-171-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | setTransformationAnchor(QGraphicsView::AnchorUnderMouse) would not work properly if viewport margins were set. When centering the view in QGraphicsViewPrivate::centerView, the viewport margins were not being taken into account. Mapping from global cursor coordinates in the viewport instead of the view fixes the issue. Task-number: 255529 Reviewed-by: Olivier
| * Autotest for correct word wrapping on text next to floating objectEskil Abrahamsen Blomfeldt2009-08-141-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | We set the document's page size to be large enough to contain an image which is 100 pixels wide and one, but not two, instances of the word 'Foobar'. We then render HTML which contains a string with repeated occurrences of the word 'Foobar' next to a floating, right-aligned image which is 100 pixels wide. The layout should break on word boundaries, since this is the default in QTextDocument, and thus each text line should contain one instance of the word 'Foobar'. Task-number: 240325
| * Reimplement qSwap and Q_DECLARE_SHARED differently.Thiago Macieira2009-08-142-0/+52
| | | | | | | | | | | | | | | | | | This enables the use of Q_DECLARE_SHARED with d-pointers that are QExplicitlySharedDataPointer<PrivateClass>. Also, this enables swapping atomically QSharedPointers. Reviewed-by: Harald Fernengel
| * Perform license checks on source files.Frans Englich2009-08-141-19/+65
| | | | | | | | | | | | | | Previously we only checked headers, but we actually care about source files too. This detects about 50 errors all over Qt. Discussed with Thiago.
* | push the right object when the argument is the Global ObjectKent Hansen2009-08-141-12/+9
| | | | | | | | | | | | | | | | | | Since the internal Global Object is never exposed to the public, we need to do like we do in setActivationObject(): if the object passed is the Global Object proxy, use the internal Global Object as the "real" argument. (JSC requires that the initial object pushed onto the scope chain is an instance of JSC::JSGlobalObject, and the Global Object proxy is not; hence, we can't push the proxy.)
* | Detect evaluation context in the backtraceOlivier Goffart2009-08-141-2/+2
| |
* | More polishing on the backtraceOlivier Goffart2009-08-141-18/+18
| | | | | | | | | | | | change the coding style of function from foo (arg=text) to foo(arg = 'text')
* | more extensive backtrace testOlivier Goffart2009-08-141-12/+93
| |
* | Polish the QScriptContext::backtrace()Olivier Goffart2009-08-142-6/+5
| | | | | | | | | | | | | | - in QScriptContextInfo, get the filename of specials context - in QScriptContextInfo, get the right information for the global context (from the skipped fake frame) - addapt the test to the current backtrace layout.
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-1419-387/+1291
|\ \ | |/ | | | | qtscript-jsc-backend
| * Add stringbuilder auto test to auto.prohjk2009-08-141-0/+1
| | | | | | | | Reviewed-by: trustme
| * Fix MLS testWarwick Allison2009-08-141-1/+2
| | | | | | | | "sm"+ellipsis (...) is same length as "small" in some fonts
| * spelWarwick Allison2009-08-141-2/+2
| |
| * Fixed audio auto tests.Kurt Korbatits2009-08-134-129/+229
| | | | | | | | | | | | Handle platforms that don't have backends. Reviewed-by: Bill King
| * Removed a few bogus includesAlessandro Portale2009-08-133-11/+0
| |
| * Compile fix.Alessandro Portale2009-08-131-1/+1
| | | | | | | | tst_qobject deleteQObjectWhenDeletingEvent needs QtGui.
| * Fix build, by adjusting according to how test QProcess is.Frans Englich2009-08-131-1/+16
| |
| * fixing autotests for Windows CE (deployment - QHelp)Thomas Hartmann2009-08-133-2/+33
| | | | | | | | | | Task-number: 214990 Reviewed-by: Joerg
| * Fix focus proxy deletion bugs/crashes in QGraphicsItem.Andreas Aardal Hanssen2009-08-131-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change would have been much simpler if either QGraphicsItem inherited QObject, or if we had some similar QPointer-like class that supported QGraphicsItem. The issue is this: Each item can delegate another item to be its focus proxy. That item can be a parent or child, or something completely unrelated. Either of the two items can be deleted independently. The former solution was to store backpointers in a map in the scene. Problem is, the items may not be in a scene when this happens, they may be removed from the scene, and the items may be moved between two scenes. The bad part about this fix is that it adds another pointer to QGraphicsItemPrivate. Reviewed-by: Shane Kearns <shane.kearns@sosco.com>
| * Fix auto test xmlpatternsschemats by adjusting build dependencies.Frans Englich2009-08-131-0/+1
| |
| * Fix to autotest of QDockWidgetThierry Bastian2009-08-131-1/+1
| | | | | | | | | | Mac needs a bit more time to update the widgets when they are redocked
| * Test naming convention cleanup.Rohan McGovern2009-08-131-118/+118
| |
| * Test cleaned-up.Gabriel de Dietrich2009-08-121-14/+39
| |
| * Ugly round corners when no border is drawnGabriel de Dietrich2009-08-121-0/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When specifying round corners with QStyleSheetStyle and no border-width specified, the round corners were not rendered with antialiasing. Furthermore, if border-width was set to 0, part of the border was rendered in discordance with CSS3. The background in now rendered directly instead of drawing a clipped rectangle. The actual border width is checked before rendering. A test has been added at tests/auto/uiloader/baseline/css_borderradius_allwidgets.ui Task-number: 230362 Reviewed-by: olivier
| * Add QGraphicsView to the QTouchEvent testBradley T. Hughes2009-08-121-121/+387
| | | | | | | | | | Since QTouchEvents can also be sent to QGraphicsItems, we want to test that it actually works.
* | make sure QScriptContext::scopeChain() returns the right objectKent Hansen2009-08-141-0/+2
| | | | | | | | | | | | | | | | Follow-up to commit e0a86dc604b87921652b844a5f85889bb6291ed9. Just like in the activationObject() function, we need to check if the activation object is actually a proxy to another object, and return that other object if that's the case (the proxy object should not be exposed to the public).
* | make it possible for any script object to serve as activation objectKent Hansen2009-08-141-2/+37
| | | | | | | | | | | | | | This was possible in the old back-end. In JSC, activation objects have to be instances of JSC::JSVariableObject. So the way we solve it is by having our QScriptActivationObject be able to act as a proxy to any other JSObject.
* | Skip the fake context created by Interpreter::exucute for the backtraceOlivier Goffart2009-08-141-6/+0
| |
* | Lazily construct the QScriptActivationObjectOlivier Goffart2009-08-131-1/+16
| | | | | | | | | | | | | | | | | | | | | | We can store flags on the ReturnValueRegister entry in the stackframe header (as native function don't use that) Then when requesting an activation object we can lookup the flags to know if we should create it. This reduce a lot the cost of a native call. Reviewed-by: Kent Hansen
* | Make simple function getters inlineOlivier Goffart2009-08-121-0/+17
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-12135-2988/+4497
|\ \ | |/ | | | | qtscript-jsc-backend
| * add some benchmarks for QScriptEngine and QScriptValueKent Hansen2009-08-124-0/+436
| |
| * don't test mouse over on Windows mobile in tst_QWidget::setToolTipJoerg Bornemann2009-08-121-1/+3
| | | | | | | | Reviewed-by: mauricek
| * Make QPropertyAnimation symetric wrt directionThierry Bastian2009-08-121-0/+42
| | | | | | | | | | | | It is now possible to set a start value and no end value and starting the animation will pick the default end value from the current value of the property that's being animated.
| * QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-121-20/+39
| | | | | | | | | | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
| * Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtJason McDonald2009-08-122-0/+33
| |\
| | * Autotest: make sure we can't create QWeakPointer from a QObject in destruction.Thiago Macieira2009-08-121-0/+15
| | | | | | | | | | | | This test only works in debug mode
| * | Update obsolete license headers.Jason McDonald2009-08-12127-2967/+3962
| | | | | | | | | | | | Reviewed-by: Trust Me
* | | Refactor the way the JS stack are created for native functionOlivier Goffart2009-08-121-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original JavaScriptCore doesn't create stack frame or scope for native function. JSC has been patched to support that. This commit revert our patches to JSC, and implement create the stack frame from QScript Reviewed-by: Kent Hansen
* | | Autotests refactoringJedrzej Nowacki2009-08-121-94/+329
| | | | | | | | | | | | | | | Many tests were divided into smaller pieces. Some XFAIL added. Small improvements.
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-121084-3329/+6249
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qtscript-jsc-backend Conflicts: configure src/script/qscriptarray_p.h src/script/qscriptasm.cpp src/script/qscriptasm_p.h src/script/qscriptbuffer_p.h src/script/qscriptclass.cpp src/script/qscriptclassdata.cpp src/script/qscriptclassdata_p.h src/script/qscriptclassinfo_p.h src/script/qscriptclasspropertyiterator_p.h src/script/qscriptcompiler.cpp src/script/qscriptcompiler_p.h src/script/qscriptcontext_p.cpp src/script/qscriptcontext_p.h src/script/qscriptcontextfwd_p.h src/script/qscriptcontextinfo_p.h src/script/qscriptecmaarray.cpp src/script/qscriptecmaarray_p.h src/script/qscriptecmaboolean.cpp src/script/qscriptecmaboolean_p.h src/script/qscriptecmacore.cpp src/script/qscriptecmacore_p.h src/script/qscriptecmadate.cpp src/script/qscriptecmadate_p.h src/script/qscriptecmaerror.cpp src/script/qscriptecmaerror_p.h src/script/qscriptecmafunction.cpp src/script/qscriptecmafunction_p.h src/script/qscriptecmaglobal.cpp src/script/qscriptecmaglobal_p.h src/script/qscriptecmamath.cpp src/script/qscriptecmamath_p.h src/script/qscriptecmanumber.cpp src/script/qscriptecmanumber_p.h src/script/qscriptecmaobject.cpp src/script/qscriptecmaobject_p.h src/script/qscriptecmaregexp.cpp src/script/qscriptecmaregexp_p.h src/script/qscriptecmastring.cpp src/script/qscriptecmastring_p.h src/script/qscriptengine.cpp src/script/qscriptengine_p.cpp src/script/qscriptengine_p.h src/script/qscriptengineagent_p.h src/script/qscriptenginefwd_p.h src/script/qscriptextenumeration.cpp src/script/qscriptextenumeration_p.h src/script/qscriptextqobject.cpp src/script/qscriptextqobject_p.h src/script/qscriptextvariant.cpp src/script/qscriptextvariant_p.h src/script/qscriptfunction.cpp src/script/qscriptfunction_p.h src/script/qscriptgc_p.h src/script/qscriptglobals_p.h src/script/qscriptmember_p.h src/script/qscriptnameid_p.h src/script/qscriptnodepool_p.h src/script/qscriptobject_p.h src/script/qscriptobjectfwd_p.h src/script/qscriptprettypretty.cpp src/script/qscriptprettypretty_p.h src/script/qscriptsyntaxcheckresult_p.h src/script/qscriptvalue.cpp src/script/qscriptvalue_p.h src/script/qscriptvaluefwd_p.h src/script/qscriptvalueimpl.cpp src/script/qscriptvalueimpl_p.h src/script/qscriptvalueimplfwd_p.h src/script/qscriptvalueiteratorimpl.cpp src/script/qscriptvalueiteratorimpl_p.h
| * | Possible Dead lock in the destructor of QObjectThierry Bastian2009-08-121-0/+18
| |/ | | | | | | | | | | | | | | | | | | | | The problem was that we were locking a mutex that was global to thread to remove posted events associated with a QObject from the posted event list. We were also immediately deleting those events. If that triggers the deletion of another QObject, you would then trigger a dead-lock. Task-number: 259514 Reviewed-by: brad Reviewed-by: ogoffart
| * Replace "Trolltech" with more appropriate terms.Jason McDonald2009-08-1271-73/+73
| | | | | | | | Reviewed-by: Trust Me