~timo-jyrinki/ubuntu/saucy/qtcreator/add_workaround_back

« back to all changes in this revision

Viewing changes to tests/system/suite_general/tst_basic_cpp_support/test.py

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-11-18 16:18:49 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20111118161849-5t8jugl6egvs4iev
Tags: 2.4.0~rc-0ubuntu1
* New upstream release candidate.
* Drop 04_fix_ftbfs_arm_qreal.diff, merged upstream.
* Refresh 01_fix_installation_paths.diff.
* Compress binary packages with xz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    prepareForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
10
10
    openQmakeProject(srcPath + "/creator/tests/manual/cplusplus-tools/cplusplus-tools.pro")
11
11
    waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)", 20000)
12
 
 
13
 
    mouseClick(waitForObject(":*Qt Creator_Utils::FilterLineEdit", 20000), 5, 5, 0, Qt.LeftButton)
14
 
    type(waitForObject(":*Qt Creator_Utils::FilterLineEdit"), "dummy.cpp")
15
 
    # pause to wait for results to populate
16
 
    snooze(1)
17
 
    type(waitForObject(":*Qt Creator_Utils::FilterLineEdit"), "<Return>")
 
12
    selectFromLocator("dummy.cpp")
18
13
 
19
14
##   Waiting for a solution from Froglogic to make the below work.
20
15
##   There is an issue with slots that return a class type that wasn't running previously...
24
19
#    t3 = t2.file()
25
20
#    t4 = t3.fileName
26
21
#    test.compare(editorManager.currentEditor().file().fileName, "base.cpp")
27
 
    cppwindow = findObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
 
22
    cppwindow = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
28
23
 
29
24
#    - Move the cursor to the usage of a variable.
30
25
#    - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor
51
46
#    Creator should show the definition of this function
52
47
#    - Press Shift+F2 or select from menu: Tools / C++ / Switch Between Method Declaration/Definition again
53
48
#    Creator should show the declaration of the function again.
54
 
    mouseClick(waitForObject(":*Qt Creator_Utils::FilterLineEdit", 20000), 5, 5, 0, Qt.LeftButton)
55
 
    clickButton(waitForObject(":Qt Creator_Utils::IconButton"))
56
 
    type(waitForObject(":*Qt Creator_Utils::FilterLineEdit"), "dummy.cpp")
57
 
    # pause to wait for results to populate
58
 
    snooze(1)
59
 
    type(waitForObject(":*Qt Creator_Utils::FilterLineEdit"), "<Return>")
60
 
 
 
49
    selectFromLocator("dummy.cpp")
 
50
    mainWin = findObject(":Qt Creator_Core::Internal::MainWindow")
 
51
    waitFor("mainWin.windowTitle == 'dummy.cpp - cplusplus-tools - Qt Creator'")
61
52
    # Reset cursor to the start of the document
62
53
    cursor = findObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget").textCursor()
63
54
    cursor.movePosition(QTextCursor.Start)