summaryrefslogtreecommitdiff
path: root/sw/qa/extras/README
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-09 09:06:19 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-09 09:38:17 +0100
commit469e17ac5be4205c0f3e704607c38274f092e617 (patch)
tree68d5b51c2e414a5aafff703107efdbe8b396f9df /sw/qa/extras/README
parent50bf3061e6645125ef4355f214dd35656012048b (diff)
sw testcases: avoid using UI name for default style name
Change-Id: Ic2e08245dd022555ad6308283d406d81141a9124
Diffstat (limited to 'sw/qa/extras/README')
-rw-r--r--sw/qa/extras/README4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/README b/sw/qa/extras/README
index 74d84da4cdb0..c295858b83eb 100644
--- a/sw/qa/extras/README
+++ b/sw/qa/extras/README
@@ -124,7 +124,7 @@ when later this test fails for some reason. In cpp, you typically need to be
more verbose, so the code will look like:
----
-uno::Reference<beans::XPropertySet> xStyle(getStyles("PageStyles")->getByName(DEFAULT_STYLE), uno::UNO_QUERY);
+uno::Reference<beans::XPropertySet> xStyle(getStyles("PageStyles")->getByName("Standard"), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xStyle, "IsLandscape"));
----
@@ -269,5 +269,5 @@ ThisComponent.StyleFamilies.PageStyles.getByName("Default Style").Width
C++:
-getStyles("PageStyles")->getByName(DEFAULT_STYLE) >>= defaultStyle;
+getStyles("PageStyles")->getByName("Standard") >>= defaultStyle;
sal_Int32 width = getProperty< sal_Int32 >( defaultStyle, "Width" );