~dandrader/unity8/workaroundAnimatedSpriteBug

« back to all changes in this revision

Viewing changes to tests/qmltests/Dash/tst_Dash.qml

  • Committer: CI Train Bot
  • Author(s): Michael Zanetti
  • Date: 2016-05-27 13:52:13 UTC
  • mfrom: (2325.9.5 unity8-fix-skipped-tests)
  • Revision ID: ci-train-bot@canonical.com-20160527135213-ciige9ns8o1plt01
reenable or drop disabled tests
Approved by: Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
            compare(dashContentList.currentIndex, 0);
280
280
        }
281
281
 
282
 
        function test_manage_dash_search_temp_scope() {
283
 
            // TODO Search is disabled for now in manage dash
284
 
            skip();
285
 
 
286
 
            // Show the manage dash
287
 
            touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
288
 
            var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
289
 
            tryCompare(bottomEdgeController, "progress", 1);
290
 
 
291
 
            // Do a search
292
 
            var scopesList = findChild(dash, "scopesList");
293
 
            var scopesListPageHeader = findChild(scopesList, "pageHeader");
294
 
            var searchButton = findChild(scopesListPageHeader, "search_header_button");
295
 
            mouseClick(searchButton);
296
 
 
297
 
            // Type something
298
 
            keyClick(Qt.Key_H);
299
 
 
300
 
            // Click on a temp scope in the search
301
 
            tryCompareFunction( function() { return findChild(scopesList, "scopesListCategorysearchA") != null; }, true);
302
 
            var dashCategorysearchA = findChild(scopesList, "scopesListCategorysearchA");
303
 
            tryCompareFunction( function() { return findChild(dashCategorysearchA, "delegate2") != null; }, true);
304
 
            var cardTempScope = findChild(dashCategorysearchA, "delegate2");
305
 
 
306
 
            waitForRendering(cardTempScope);
307
 
            mouseClick(cardTempScope);
308
 
 
309
 
            // Check the bottom edge (overview) is disabled from temp scope
310
 
            var overviewDragHandle = findChild(dash, "overviewDragHandle");
311
 
            compare(overviewDragHandle.enabled, false);
312
 
 
313
 
            // Check temp scope is there
314
 
            var dashTempScopeItem = findChild(dash, "dashTempScopeItem");
315
 
            tryCompare(dashTempScopeItem, "x", 0);
316
 
            tryCompare(dashTempScopeItem, "visible", true);
317
 
 
318
 
            // Check the manage dash is gone
319
 
            tryCompare(bottomEdgeController, "progress", 0);
320
 
 
321
 
            // Go back
322
 
            var dashTempScopeItemHeader = findChild(dashTempScopeItem, "scopePageHeader");
323
 
            var backButton = findChild(findChild(dashTempScopeItemHeader, "innerPageHeader"), "customBackButton");
324
 
            mouseClick(backButton);
325
 
 
326
 
            // Check temp scope is gone
327
 
            tryCompare(dashTempScopeItem, "x", dash.width);
328
 
            tryCompare(dashTempScopeItem, "visible", false);
329
 
 
330
 
            // Original list is still on 0
331
 
            var dashContentList = findChild(dash, "dashContentList");
332
 
            compare(dashContentList.currentIndex, 0);
333
 
        }
334
 
 
335
282
        function test_manage_dash_open_no_favorites() {
336
283
            // Make it so there are no scopes
337
284
            scopes.clear();