~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to tests/qmltests/Notifications/tst_OptionToggle.qml

  • Committer: Michael Zanetti
  • Date: 2016-10-13 11:02:11 UTC
  • mfrom: (2525.1.132 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161013110211-tj2gly2dxaqj5t2e
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2015 Canonical Ltd.
 
2
 * Copyright 2015-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
51
51
        function getRaw(id) {
52
52
            return mockNotification.createObject(mockModel)
53
53
        }
54
 
 
55
 
        // add the default/PlaceHolder notification to the model
56
 
        Component.onCompleted: {
57
 
            var n = {
58
 
                type: Notification.PlaceHolder,
59
 
                hints: {},
60
 
                summary: "",
61
 
                body: "",
62
 
                icon: "",
63
 
                secondaryIcon: "",
64
 
                actions: []
65
 
            }
66
 
 
67
 
            append(n)
68
 
        }
69
54
    }
70
55
 
71
56
    function addSnapDecisionNotification() {