cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
48 lines
1003 B
QML
48 lines
1003 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick
|
|
import QtQuick.Templates as T
|
|
import QtTest
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
TestCase {
|
|
name: "SpellCheckAttachedTest"
|
|
visible: true
|
|
when: windowShown
|
|
|
|
width: 500
|
|
height: 500
|
|
|
|
Component {
|
|
id: emptyComponent
|
|
T.TextArea {}
|
|
}
|
|
|
|
Component {
|
|
id: attachedComponent
|
|
T.TextArea {
|
|
Kirigami.SpellCheck.enabled: true
|
|
}
|
|
}
|
|
|
|
function test_defaults() {
|
|
const area = createTemporaryObject(emptyComponent, this);
|
|
verify(area);
|
|
|
|
verify(!area.Kirigami.SpellCheck.enabled);
|
|
area.Kirigami.SpellCheck.enabled = true;
|
|
verify(area.Kirigami.SpellCheck.enabled);
|
|
}
|
|
|
|
function test_createAttached() {
|
|
const area = createTemporaryObject(attachedComponent, this);
|
|
verify(area);
|
|
|
|
verify(area.Kirigami.SpellCheck.enabled);
|
|
}
|
|
}
|