MixedTest.java (7d4ea83a) MixedTest.java (0cfac088)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 69 unchanged lines hidden (view full) ---

78 XText xText = textDocument.getText();
79 xText.setString("UNO: Hello World!");
80 //Input something by typing keyboard
81 writer.typeKeys("GUI: Hello world!");
82 //Set text color to green via GUI
83 writer.drag(10, 10, 300, 400);
84 writer.menuItem("Format->Character...").select();
85 effectsPage.select();
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 69 unchanged lines hidden (view full) ---

78 XText xText = textDocument.getText();
79 xText.setString("UNO: Hello World!");
80 //Input something by typing keyboard
81 writer.typeKeys("GUI: Hello world!");
82 //Set text color to green via GUI
83 writer.drag(10, 10, 300, 400);
84 writer.menuItem("Format->Character...").select();
85 effectsPage.select();
86 colorList.select("Light green");
86 colorList.select("Green 3");
87 effectsPage.ok();
88 //Verify the result via UNO API
89 XTextCursor xTextCursor = xText.createTextCursor();
90 XPropertySet xps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
87 effectsPage.ok();
88 //Verify the result via UNO API
89 XTextCursor xTextCursor = xText.createTextCursor();
90 XPropertySet xps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
91 Assert.assertEquals("Text Color", 0x0000FF00, xps.getPropertyValue("CharColor"));
91 Assert.assertEquals("Text Color", 0x00CC00, xps.getPropertyValue("CharColor"));
92 }
93}
92 }
93}