~ubuntu-branches/ubuntu/trusty/unity8/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ted Gould, Michał Sawicz, Albert Astals, Andrea Cimitan, Michał Karnicki, Michael Terry
  • Date: 2014-02-07 10:46:46 UTC
  • mfrom: (1.1.66)
  • Revision ID: package-import@ubuntu.com-20140207104646-unm9znfrt2gf8rb3
Tags: 7.84+14.04.20140207.1-0ubuntu1
[ Ted Gould ]
* You can't tap anywhere

[ Michał Sawicz ]
* Wait for the indicator to appear.
* Add CardTool to determine category-wide card properties based on the
  category template. Clean up test configurations, too.
* Actions Preview Widget
* Add Preview for new generation scopes.
* Add overlay to card. Fix implicit card height. .

[ Albert Astals ]
* Basic ImageGallery widget for Previews Mostly a copy of the code
  used in AppPreview.qml but without the MouseArea hack that I'll wait
  to introduce until we start using this somewhere were it is needed
* Actions Preview Widget

[ Andrea Cimitan ]
* First audio player widget for previews, with tests
* Adds TextSummary preview widget

[ Michał Karnicki ]
* Add overlay to card. Fix implicit card height. .

[ Michael Terry ]
* Expand greeter demo support to include listing multiple users and
  specifying individual passwords and names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            "name": "Header title only",
75
75
            "layout": { "components": { "title": "title" } }
76
76
        },
 
77
        {
 
78
            "name": "Art, header, summary - overlaid",
 
79
            "layout": { "template": { "overlay": true },
 
80
                        "components": JSON.parse(Helpers.fullMapping) }
 
81
        },
77
82
    ]
78
83
 
79
84
    CardTool {
224
229
        }
225
230
 
226
231
        function test_card_size(data) {
 
232
            waitForRendering(card);
227
233
            selector.selectedIndex = data.index;
228
234
 
229
235
            if (data.hasOwnProperty("size")) {
314
320
                  left: function() { return art.x }, index: 0 },
315
321
                { tag: "Horizontal", top: function() { return art.y },
316
322
                  left: function() { return art.x + art.width }, index: 5 },
 
323
                { tag: "Overlay", top: function() { return art.y + art.height - header.height },
 
324
                  left: function() { return art.x }, index: 9 },
317
325
            ]
318
326
        }
319
327