on xenial help sign in
Add some context to tr calls
6eef434Albert Astals Cid
po/unity8.pot+50−22
@@ -8,7 +8,7 @@ msgid ""
8msgstr ""
8msgstr ""
9"Project-Id-Version: unity8\n"
9"Project-Id-Version: unity8\n"
10"Report-Msgid-Bugs-To: \n"
10"Report-Msgid-Bugs-To: \n"
11−"POT-Creation-Date: 2015-02-25 08:57-0500\n"
11+"POT-Creation-Date: 2015-03-13 11:06+0100\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -50,70 +50,84 @@ msgid_plural "Please wait %1 minutes and then try again…"
50msgstr[0] ""
50msgstr[0] ""
51msgstr[1] ""
51msgstr[1] ""
52
52
53−#: qml/Components/Dialogs.qml:87
53+#: qml/Components/Dialogs.qml:67
54+msgctxt "Title: Lock/Log out dialog"
54msgid "Log out"
55msgid "Log out"
55msgstr ""
56msgstr ""
56
57
57−#: qml/Components/Dialogs.qml:88
58+#: qml/Components/Dialogs.qml:68
58msgid "Are you sure you want to log out?"
59msgid "Are you sure you want to log out?"
59msgstr ""
60msgstr ""
60
61
61−#: qml/Components/Dialogs.qml:90
62+#: qml/Components/Dialogs.qml:70
63+msgctxt "Button: Lock the system"
62msgid "Lock"
64msgid "Lock"
63msgstr ""
65msgstr ""
64
66
65−#: qml/Components/Dialogs.qml:97
67+#: qml/Components/Dialogs.qml:77
68+msgctxt "Button: Log out from the system"
66msgid "Log Out"
69msgid "Log Out"
67msgstr ""
70msgstr ""
68
71
69−#: qml/Components/Dialogs.qml:104 qml/Components/Dialogs.qml:135
72+#: qml/Components/Dialogs.qml:84 qml/Components/Dialogs.qml:115
70−#: qml/Components/Dialogs.qml:191
73+#: qml/Components/Dialogs.qml:171
71msgid "Cancel"
74msgid "Cancel"
72msgstr ""
75msgstr ""
73
76
74−#: qml/Components/Dialogs.qml:116
77+#: qml/Components/Dialogs.qml:96
78+msgctxt "Title: Reboot/Shut down dialog"
75msgid "Shut down"
79msgid "Shut down"
76msgstr ""
80msgstr ""
77
81
78−#: qml/Components/Dialogs.qml:117
82+#: qml/Components/Dialogs.qml:97
79msgid "Are you sure you want to shut down?"
83msgid "Are you sure you want to shut down?"
80msgstr ""
84msgstr ""
81
85
82−#: qml/Components/Dialogs.qml:119 qml/Components/Dialogs.qml:147
86+#: qml/Components/Dialogs.qml:99
87+msgctxt "Button: Reboot the system"
83msgid "Reboot"
88msgid "Reboot"
84msgstr ""
89msgstr ""
85
90
91+#: qml/Components/Dialogs.qml:107
92+msgctxt "Button: Shut down the system"
93+msgid "Shut down"
94+msgstr ""
95+
86#: qml/Components/Dialogs.qml:127
96#: qml/Components/Dialogs.qml:127
97+msgctxt "Title: Reboot dialog"
87−msgid "Shutdown"
98+msgid "Reboot"
88msgstr ""
99msgstr ""
89
100
90−#: qml/Components/Dialogs.qml:148
101+#: qml/Components/Dialogs.qml:128
91msgid "Are you sure you want to reboot?"
102msgid "Are you sure you want to reboot?"
92msgstr ""
103msgstr ""
93
104
94−#: qml/Components/Dialogs.qml:150
105+#: qml/Components/Dialogs.qml:130
95msgid "No"
106msgid "No"
96msgstr ""
107msgstr ""
97
108
98−#: qml/Components/Dialogs.qml:156
109+#: qml/Components/Dialogs.qml:136
99msgid "Yes"
110msgid "Yes"
100msgstr ""
111msgstr ""
101
112
102−#: qml/Components/Dialogs.qml:170
113+#: qml/Components/Dialogs.qml:150
114+msgctxt "Title: Power off/Restart dialog"
103msgid "Power"
115msgid "Power"
104msgstr ""
116msgstr ""
105
117
106−#: qml/Components/Dialogs.qml:171
118+#: qml/Components/Dialogs.qml:151
107msgid ""
119msgid ""
108"Are you sure you would like\n"
120"Are you sure you would like\n"
109"to power off?"
121"to power off?"
110msgstr ""
122msgstr ""
111
123
112−#: qml/Components/Dialogs.qml:173
124+#: qml/Components/Dialogs.qml:153
125+msgctxt "Button: Power off the system"
113msgid "Power off"
126msgid "Power off"
114msgstr ""
127msgstr ""
115
128
116−#: qml/Components/Dialogs.qml:182
129+#: qml/Components/Dialogs.qml:162
130+msgctxt "Button: Restart the system"
117msgid "Restart"
131msgid "Restart"
118msgstr ""
132msgstr ""
119
133
@@ -129,23 +143,29 @@ msgstr ""
129msgid "OK"
143msgid "OK"
130msgstr ""
144msgstr ""
131
145
132−#: qml/Dash/GenericScopeView.qml:528 qml/Dash/GenericScopeView.qml:686
146+#: qml/Dash/GenericScopeView.qml:533 qml/Dash/GenericScopeView.qml:691
133msgid "See less"
147msgid "See less"
134msgstr ""
148msgstr ""
135
149
136−#: qml/Dash/GenericScopeView.qml:528
150+#: qml/Dash/GenericScopeView.qml:533
137msgid "See all"
151msgid "See all"
138msgstr ""
152msgstr ""
139
153
140−#: qml/Dash/GenericScopeView.qml:590 qml/Dash/PageHeader.qml:276
154+#: qml/Dash/GenericScopeView.qml:595
141−#: qml/Panel/SearchIndicator.qml:27
155+msgctxt "Label: Hint for dash search line edit"
142msgid "Search"
156msgid "Search"
143msgstr ""
157msgstr ""
144
158
145#: qml/Dash/PageHeader.qml:269
159#: qml/Dash/PageHeader.qml:269
160+msgctxt "Button: The Ubuntu Store"
146msgid "Store"
161msgid "Store"
147msgstr ""
162msgstr ""
148
163
164+#: qml/Dash/PageHeader.qml:276
165+msgctxt "Button: Shown in Page Header Menu"
166+msgid "Search"
167+msgstr ""
168+
149#: qml/Dash/PageHeader.qml:286
169#: qml/Dash/PageHeader.qml:286
150msgid "Settings"
170msgid "Settings"
151msgstr ""
171msgstr ""
@@ -309,6 +329,7 @@ msgid "Failed, tap to retry"
309msgstr ""
329msgstr ""
310
330
311#: qml/Panel/Indicators/MessageMenuItemFactory.qml:149
331#: qml/Panel/Indicators/MessageMenuItemFactory.qml:149
332+msgctxt "Label: Hint in message indicator line edit"
312msgid "Reply"
333msgid "Reply"
313msgstr ""
334msgstr ""
314
335
@@ -373,6 +394,7 @@ msgid "View all your running tasks."
373msgstr ""
394msgstr ""
374
395
375#: qml/Wizard/Page.qml:89
396#: qml/Wizard/Page.qml:89
397+msgctxt "Button: Go back one page in the Wizard"
376msgid "Back"
398msgid "Back"
377msgstr ""
399msgstr ""
378
400
@@ -416,26 +438,32 @@ msgid "Please select how you’d like to unlock your phone."
416msgstr ""
438msgstr ""
417
439
418#: qml/Wizard/Pages/30-passwd-type.qml:97
440#: qml/Wizard/Pages/30-passwd-type.qml:97
441+msgctxt "Label: Type of security method"
419msgid "Swipe"
442msgid "Swipe"
420msgstr ""
443msgstr ""
421
444
422#: qml/Wizard/Pages/30-passwd-type.qml:98
445#: qml/Wizard/Pages/30-passwd-type.qml:98
446+msgctxt "Label: Description of security method"
423msgid "No security"
447msgid "No security"
424msgstr ""
448msgstr ""
425
449
426#: qml/Wizard/Pages/30-passwd-type.qml:100
450#: qml/Wizard/Pages/30-passwd-type.qml:100
451+msgctxt "Label: Type of security method"
427msgid "Passcode"
452msgid "Passcode"
428msgstr ""
453msgstr ""
429
454
430#: qml/Wizard/Pages/30-passwd-type.qml:101
455#: qml/Wizard/Pages/30-passwd-type.qml:101
456+msgctxt "Label: Description of security method"
431msgid "4 digits only"
457msgid "4 digits only"
432msgstr ""
458msgstr ""
433
459
434#: qml/Wizard/Pages/30-passwd-type.qml:103
460#: qml/Wizard/Pages/30-passwd-type.qml:103
461+msgctxt "Label: Type of security method"
435msgid "Passphrase"
462msgid "Passphrase"
436msgstr ""
463msgstr ""
437
464
438#: qml/Wizard/Pages/30-passwd-type.qml:104
465#: qml/Wizard/Pages/30-passwd-type.qml:104
466+msgctxt "Label: Description of security method"
439msgid "Numbers and letters"
467msgid "Numbers and letters"
440msgstr ""
468msgstr ""
441
469
po/update-unity-pot+1
@@ -22,6 +22,7 @@ xgettext \
22 --keyword=tr \
22 --keyword=tr \
23 --keyword=tr:1,2 \
23 --keyword=tr:1,2 \
24 --keyword=dtr:2 \
24 --keyword=dtr:2 \
25+ --keyword=ctr:1c,2 \
25 --package-name="unity8" \
26 --package-name="unity8" \
26 --copyright-holder="Canonical Ltd." \
27 --copyright-holder="Canonical Ltd." \
27 --from-code="UTF-8"
28 --from-code="UTF-8"
qml/Components/Dialogs.qml+10−10
@@ -64,17 +64,17 @@ Item {
64 id: logoutDialogComponent
64 id: logoutDialogComponent
65 ShellDialog {
65 ShellDialog {
66 id: logoutDialog
66 id: logoutDialog
67− title: i18n.tr("Log out")
67+ title: i18n.ctr("Title: Lock/Log out dialog", "Log out")
68 text: i18n.tr("Are you sure you want to log out?")
68 text: i18n.tr("Are you sure you want to log out?")
69 Button {
69 Button {
70− text: i18n.tr("Lock")
70+ text: i18n.ctr("Button: Lock the system", "Lock")
71 onClicked: {
71 onClicked: {
72 LightDM.Greeter.showGreeter()
72 LightDM.Greeter.showGreeter()
73 logoutDialog.hide();
73 logoutDialog.hide();
74 }
74 }
75 }
75 }
76 Button {
76 Button {
77− text: i18n.tr("Log Out")
77+ text: i18n.ctr("Button: Log out from the system", "Log Out")
78 onClicked: {
78 onClicked: {
79 unitySessionService.logout();
79 unitySessionService.logout();
80 logoutDialog.hide();
80 logoutDialog.hide();
@@ -93,10 +93,10 @@ Item {
93 id: shutdownDialogComponent
93 id: shutdownDialogComponent
94 ShellDialog {
94 ShellDialog {
95 id: shutdownDialog
95 id: shutdownDialog
96− title: i18n.tr("Shut down")
96+ title: i18n.ctr("Title: Reboot/Shut down dialog", "Shut down")
97 text: i18n.tr("Are you sure you want to shut down?")
97 text: i18n.tr("Are you sure you want to shut down?")
98 Button {
98 Button {
99− text: i18n.tr("Reboot")
99+ text: i18n.ctr("Button: Reboot the system", "Reboot")
100 onClicked: {
100 onClicked: {
101 root.closeAllApps();
101 root.closeAllApps();
102 unitySessionService.reboot();
102 unitySessionService.reboot();
@@ -104,7 +104,7 @@ Item {
104 }
104 }
105 }
105 }
106 Button {
106 Button {
107− text: i18n.tr("Shutdown")
107+ text: i18n.ctr("Button: Shut down the system", "Shut down")
108 onClicked: {
108 onClicked: {
109 root.closeAllApps();
109 root.closeAllApps();
110 unitySessionService.shutdown();
110 unitySessionService.shutdown();
@@ -124,7 +124,7 @@ Item {
124 id: rebootDialogComponent
124 id: rebootDialogComponent
125 ShellDialog {
125 ShellDialog {
126 id: rebootDialog
126 id: rebootDialog
127− title: i18n.tr("Reboot")
127+ title: i18n.ctr("Title: Reboot dialog", "Reboot")
128 text: i18n.tr("Are you sure you want to reboot?")
128 text: i18n.tr("Are you sure you want to reboot?")
129 Button {
129 Button {
130 text: i18n.tr("No")
130 text: i18n.tr("No")
@@ -147,10 +147,10 @@ Item {
147 id: powerDialogComponent
147 id: powerDialogComponent
148 ShellDialog {
148 ShellDialog {
149 id: powerDialog
149 id: powerDialog
150− title: i18n.tr("Power")
150+ title: i18n.ctr("Title: Power off/Restart dialog", "Power")
151 text: i18n.tr("Are you sure you would like\nto power off?")
151 text: i18n.tr("Are you sure you would like\nto power off?")
152 Button {
152 Button {
153− text: i18n.tr("Power off")
153+ text: i18n.ctr("Button: Power off the system", "Power off")
154 onClicked: {
154 onClicked: {
155 root.closeAllApps();
155 root.closeAllApps();
156 powerDialog.hide();
156 powerDialog.hide();
@@ -159,7 +159,7 @@ Item {
159 color: UbuntuColors.red
159 color: UbuntuColors.red
160 }
160 }
161 Button {
161 Button {
162− text: i18n.tr("Restart")
162+ text: i18n.ctr("Button: Restart the system", "Restart")
163 onClicked: {
163 onClicked: {
164 root.closeAllApps();
164 root.closeAllApps();
165 unitySessionService.reboot();
165 unitySessionService.reboot();
qml/Dash/GenericScopeView.qml+1−1
@@ -592,7 +592,7 @@ FocusScope {
592 objectName: "scopePageHeader"
592 objectName: "scopePageHeader"
593 width: parent.width
593 width: parent.width
594 title: scopeView.scope ? scopeView.scope.name : ""
594 title: scopeView.scope ? scopeView.scope.name : ""
595− searchHint: scopeView.scope && scopeView.scope.searchHint || i18n.tr("Search")
595+ searchHint: scopeView.scope && scopeView.scope.searchHint || i18n.ctr("Label: Hint for dash search line edit", "Search")
596 showBackButton: scopeView.hasBackAction
596 showBackButton: scopeView.hasBackAction
597 searchEntryEnabled: true
597 searchEntryEnabled: true
598 settingsEnabled: scopeView.scope && scopeView.scope.settings && scopeView.scope.settings.count > 0 || false
598 settingsEnabled: scopeView.scope && scopeView.scope.settings && scopeView.scope.settings.count > 0 || false
qml/Dash/PageHeader.qml+3−3
@@ -266,14 +266,14 @@ Item {
266 actions: [
266 actions: [
267 Action {
267 Action {
268 objectName: "store"
268 objectName: "store"
269− text: i18n.tr("Store")
269+ text: i18n.ctr("Button: Open the Ubuntu Store", "Store")
270 iconName: "ubuntu-store-symbolic"
270 iconName: "ubuntu-store-symbolic"
271 visible: root.storeEntryEnabled
271 visible: root.storeEntryEnabled
272 onTriggered: root.storeClicked();
272 onTriggered: root.storeClicked();
273 },
273 },
274 Action {
274 Action {
275 objectName: "search"
275 objectName: "search"
276− text: i18n.tr("Search")
276+ text: i18n.ctr("Button: Start a search in the current dash scope", "Search")
277 iconName: "search"
277 iconName: "search"
278 visible: root.searchEntryEnabled
278 visible: root.searchEntryEnabled
279 onTriggered: {
279 onTriggered: {
@@ -283,7 +283,7 @@ Item {
283 },
283 },
284 Action {
284 Action {
285 objectName: "settings"
285 objectName: "settings"
286− text: i18n.tr("Settings")
286+ text: i18n.ctr("Button: Show the current dash scope settings", "Settings")
287 iconName: "settings"
287 iconName: "settings"
288 visible: root.settingsEnabled
288 visible: root.settingsEnabled
289 onTriggered: root.settingsClicked()
289 onTriggered: root.settingsClicked()
qml/Panel/Indicators/MessageMenuItemFactory.qml+1−1
@@ -146,7 +146,7 @@ Loader {
146 time: timeFormatter.timeString
146 time: timeFormatter.timeString
147 body: getExtendedProperty(extendedData, "xCanonicalText", "")
147 body: getExtendedProperty(extendedData, "xCanonicalText", "")
148 replyButtonText: getExtendedProperty(replyActionDescription, "label", "Send")
148 replyButtonText: getExtendedProperty(replyActionDescription, "label", "Send")
149− replyHintText: i18n.tr("Reply")
149+ replyHintText: i18n.ctr("Label: Hint in message indicator line edit", "Reply")
150 // icons
150 // icons
151 avatar: getExtendedProperty(extendedData, "icon", "image://theme/contact")
151 avatar: getExtendedProperty(extendedData, "icon", "image://theme/contact")
152 icon: getExtendedProperty(extendedData, "xCanonicalAppIcon", "image://theme/message")
152 icon: getExtendedProperty(extendedData, "xCanonicalAppIcon", "image://theme/message")
qml/Panel/SearchIndicator.qmldeleted−82
@@ -1,82 +0,0 @@
1−/*
2− * Copyright (C) 2013 Canonical, Ltd.
3− *
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU General Public License as published by
6− * the Free Software Foundation; version 3.
7− *
8− * This program is distributed in the hope that it will be useful,
9− * but WITHOUT ANY WARRANTY; without even the implied warranty of
10− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11− * GNU General Public License for more details.
12− *
13− * You should have received a copy of the GNU General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
15− */
16−
17−import QtQuick 2.0
18−import Ubuntu.Components 0.1
19−import "../Components"
20−
21−Item {
22− id: search
23−
24− width: container.width + units.gu(2)
25− height: units.gu(3)
26−
27− property string headerText: i18n.tr("Search")
28−
29− signal clicked
30−
31− // eater
32− MouseArea {
33− anchors.fill: parent
34− onClicked: search.clicked()
35− }
36−
37− Row {
38− id: container
39− objectName: "container"
40−
41− height: parent.height
42− width: childrenRect.width
43− anchors {
44− left: parent.left
45− leftMargin: units.gu(1)
46− }
47− spacing: units.gu(1)
48−
49− Behavior on opacity { StandardAnimation { duration: 300 } }
50−
51− Image {
52− id: icon
53− source: "graphics/search.png"
54− anchors.verticalCenter: parent.verticalCenter
55− }
56−
57− Label {
58− text: search.headerText
59− color: Qt.rgba(0.8, 0.8, 0.8, 1.0)
60− fontSize: "small"
61− font.capitalization: Font.AllUppercase
62− anchors.verticalCenter: parent.verticalCenter
63− }
64− }
65−
66− states: [
67− State {
68− name: "visible"
69− PropertyChanges {
70− target: container
71− opacity: 1
72− }
73− },
74− State {
75− name: "hidden"
76− PropertyChanges {
77− target: container
78− opacity: 0
79− }
80− }
81− ]
82−}
qml/Wizard/Page.qml+1−1
@@ -86,7 +86,7 @@ Item {
86 bottomMargin: buttonMargin
86 bottomMargin: buttonMargin
87 }
87 }
88 z: 1
88 z: 1
89− text: i18n.tr("Back")
89+ text: i18n.ctr("Button: Go back one page in the Wizard", "Back")
90 visible: pageStack.depth > 1 && hasBackButton
90 visible: pageStack.depth > 1 && hasBackButton
91 backArrow: true
91 backArrow: true
92
92
qml/Wizard/Pages/30-passwd-type.qml+6−6
@@ -94,14 +94,14 @@ LocalComponents.Page {
94 var name = ""
94 var name = ""
95 var desc = ""
95 var desc = ""
96 if (method === UbuntuSecurityPrivacyPanel.Swipe) {
96 if (method === UbuntuSecurityPrivacyPanel.Swipe) {
97− name = i18n.tr("Swipe")
97+ name = i18n.ctr("Label: Type of security method", "Swipe")
98− desc = i18n.tr("No security")
98+ desc = i18n.ctr("Label: Description of security method", "No security")
99 } else if (method === UbuntuSecurityPrivacyPanel.Passcode) {
99 } else if (method === UbuntuSecurityPrivacyPanel.Passcode) {
100− name = i18n.tr("Passcode")
100+ name = i18n.ctr("Label: Type of security method", "Passcode")
101− desc = i18n.tr("4 digits only")
101+ desc = i18n.ctr("Label: Description of security method", "4 digits only")
102 } else {
102 } else {
103− name = i18n.tr("Passphrase")
103+ name = i18n.ctr("Label: Type of security method", "Passphrase")
104− desc = i18n.tr("Numbers and letters")
104+ desc = i18n.ctr("Label: Description of security method", "Numbers and letters")
105 }
105 }
106 return "<b>%1</b> (%2)".arg(name).arg(desc)
106 return "<b>%1</b> (%2)".arg(name).arg(desc)
107 }
107 }
tests/qmltests/CMakeLists.txt−1
@@ -78,7 +78,6 @@ add_qml_test(Panel IndicatorsBar)
78add_qml_test(Panel IndicatorsMenu)
78add_qml_test(Panel IndicatorsMenu)
79add_qml_test(Panel MenuContent)
79add_qml_test(Panel MenuContent)
80add_qml_test(Panel Panel)
80add_qml_test(Panel Panel)
81−add_qml_test(Panel SearchIndicator)
82add_qml_test(Panel/Indicators IndicatorsLight ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/tests/mocks/QMenuModel")
81add_qml_test(Panel/Indicators IndicatorsLight ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/tests/mocks/QMenuModel")
83# These MenuItemFactory tests need the test/mocks/ to come before plugins/
82# These MenuItemFactory tests need the test/mocks/ to come before plugins/
84add_qml_test(Panel/Indicators MenuItemFactory IMPORT_PATHS ${CMAKE_BINARY_DIR}/tests/mocks ${qmltest_DEFAULT_IMPORT_PATHS})
83add_qml_test(Panel/Indicators MenuItemFactory IMPORT_PATHS ${CMAKE_BINARY_DIR}/tests/mocks ${qmltest_DEFAULT_IMPORT_PATHS})
tests/qmltests/Panel/tst_SearchIndicator.qmldeleted−61
@@ -1,61 +0,0 @@
1−/*
2− * Copyright 2013 Canonical Ltd.
3− *
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU General Public License as published by
6− * the Free Software Foundation; version 3.
7− *
8− * This program is distributed in the hope that it will be useful,
9− * but WITHOUT ANY WARRANTY; without even the implied warranty of
10− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11− * GNU General Public License for more details.
12− *
13− * You should have received a copy of the GNU General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
15− */
16−
17−import QtQuick 2.0
18−import QtTest 1.0
19−import "../../../qml/Panel"
20−import Ubuntu.Components 0.1
21−import Unity.Test 0.1 as UT
22−
23−Item {
24− width: units.gu(9)
25− height: units.gu(3)
26−
27− SignalSpy {
28− id: clickedSpy
29− target: searchIndicator
30− signalName: "clicked"
31− }
32−
33− SearchIndicator {
34− id: searchIndicator
35− anchors.fill: parent
36− }
37−
38− UT.UnityTestCase {
39− name: "SearchIndicator"
40− when: windowShown
41−
42− function test_clickedSignal() {
43− clickedSpy.clear();
44− mouseClick(searchIndicator,
45− searchIndicator.width / 2, searchIndicator.height / 2);
46− compare(clickedSpy.count, 1);
47− }
48−
49− function test_hideUp() {
50− var container = findChild(searchIndicator, "container");
51− searchIndicator.state = "hidden";
52− tryCompare(container, "opacity", 0);
53− }
54−
55− function test_show() {
56− var container = findChild(searchIndicator, "container");
57− searchIndicator.state = "visible";
58− tryCompare(container, "opacity", 1);
59− }
60− }
61−}