From 9202d454511fa917d7ede2e969c738c20e835675 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Sun, 16 Feb 2020 12:26:54 +0100 Subject: qdoc: Add a test for validating output of QML basic type methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-36585 Change-Id: Idbcc701394e1a1f688d3832a88ae5f8948e73c36 Reviewed-by: Topi Reiniƶ --- .../generatedoutput/expected_output/docbook/qml-int.xml | 7 +++++++ .../qdoc/generatedoutput/expected_output/qml-int.html | 16 ++++++++++++++++ tests/auto/qdoc/generatedoutput/qml/parent.qdoc | 5 +++++ 3 files changed, 28 insertions(+) (limited to 'tests') diff --git a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qml-int.xml b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qml-int.xml index 2dd4bc1c5..00ef9ec39 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qml-int.xml +++ b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qml-int.xml @@ -11,4 +11,11 @@ Detailed Description + +Method Documentation + +int abs() +Returns the absolute value of this integer. + + diff --git a/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html b/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html index 651f840cb..0b21da628 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html +++ b/tests/auto/qdoc/generatedoutput/expected_output/qml-int.html @@ -15,9 +15,25 @@

int QML Basic Type

+ +

Methods

+
+

Method Documentation

+ +
+
+ + +

+int abs()

+

Returns the absolute value of this integer.

+
+
diff --git a/tests/auto/qdoc/generatedoutput/qml/parent.qdoc b/tests/auto/qdoc/generatedoutput/qml/parent.qdoc index e0bed66c0..fed18491c 100644 --- a/tests/auto/qdoc/generatedoutput/qml/parent.qdoc +++ b/tests/auto/qdoc/generatedoutput/qml/parent.qdoc @@ -57,3 +57,8 @@ \brief An integer basic type. */ + +/*! + \qmlmethod int int::abs() + Returns the absolute value of this integer. +*/ -- cgit v1.2.3