summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-08-11 11:15:06 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-11 12:16:50 +0300
commit3cff10827974cd773810faa2857ab81a6dcff0ee (patch)
tree0e632166e566b9acba8cbb5ef9034e15d2374433 /framework
parentf471c55378290fb8dc3571c74cc6abe90d81c46c (diff)
Follow-up to 38a3743e0c5d52f9386f74097fd512d3133fbbe3
Change-Id: If70b5754c161a0e1b262abeac8c54dde60515280
Diffstat (limited to 'framework')
-rw-r--r--framework/qa/complex/XTitle/CheckXTitle.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/framework/qa/complex/XTitle/CheckXTitle.java b/framework/qa/complex/XTitle/CheckXTitle.java
index 3e008649e806..1372cf3dc432 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -210,11 +210,12 @@ public class CheckXTitle
xDisProv = null;
}
- /** @short checks loading of new document with readonly set to true
+ /** @short checks creation of new empty document with readonly set to true
- @descr loads a new document with readonly mode set to true.
- this should fail because new doc can not be opened in
- read only mode
+ @descr creation of a new document with readonly property set
+ to true. this should not fail even if as such it can
+ be seen as a slightly silly thing to do. But existing
+ 3rd-party code depends on it to work.
*/
@Test public void checkLoadingWithReadOnly()
{
@@ -232,10 +233,8 @@ public class CheckXTitle
try{
xDoc = m_xLoader.loadComponentFromURL("private:factory/swriter", "_default", 0, lArgs);
} catch (Exception e) {
- //exception is expected. do nothing
}
-
- assertNull("Loading new document with read only mode true should have failed", xDoc);
+ assertNotNull("Creating a new document read with ReadOnly property true should work (even if slightly silly)", xDoc);
}
private XMultiServiceFactory getMSF()