@Test public void updateStyleTest() { updateStyleTest("background:red;font-weight:bold;width:20%", "background:red;font-weight:normal;width:20%;", "font-weight", "bold", "normal"); updateStyleTest("background:red;font-weight:bold;width:20%", "background:red;font-weight:bold;", "width", "20%", null); updateStyleTest("background:red;font-weight:bold;width:20%;", "background:red;font-weight:bold;width:20%;height:30%;", "height", null, "30%"); updateStyleTest(null, "font-weight:bold;", "font-weight", null, "bold"); updateStyleTest(null, null, "font-weight", null, null); updateStyleTest("font-weight:bold", null, "font-weight", "bold", null); }