# HG changeset patch # User stechong # Date 1238769311 18000 # Node ID 60053ab1f6b78300867713a1187daed3781e21b8 # Parent 2d1c891725ea28bd44e2aa30ed37de15e2f7f847 Added support for IAD rules; fix for Bug 8251. diff -r 2d1c891725ea -r 60053ab1f6b7 core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigManagerTest.java --- a/core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigManagerTest.java Fri Apr 03 09:33:43 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigManagerTest.java Fri Apr 03 09:35:11 2009 -0500 @@ -171,6 +171,7 @@ assertTrue(settings.get(CSPreferenceConstants.RULE_SEVERITIES).length() > 0); assertTrue(settings.get(CSPreferenceConstants.RULES_ENABLED).length() > 0); assertTrue(settings.get(CSPreferenceConstants.CCLASSIGNORE).length() > 0); + assertTrue(settings.get(CSPreferenceConstants.ICONS).length() == 0); assertTrue(settings.get(CSPreferenceConstants.LFUNCTIONIGNORE).length() > 0); assertTrue(settings.get(CSPreferenceConstants.LONGLINES_LENGTH).length() > 0); assertTrue(settings.get(CSPreferenceConstants.OPENIGNORE).length() > 0); @@ -194,6 +195,7 @@ assertTrue(store.getString(CSPreferenceConstants.RULE_SEVERITIES).length() > 0); assertTrue(store.getString(CSPreferenceConstants.RULES_ENABLED).length() > 0); assertTrue(store.getString(CSPreferenceConstants.CCLASSIGNORE).length() > 0); + assertTrue(store.getString(CSPreferenceConstants.ICONS).length() >= 0); assertTrue(store.getString(CSPreferenceConstants.LFUNCTIONIGNORE).length() > 0); assertTrue(store.getString(CSPreferenceConstants.LONGLINES_LENGTH).length() > 0); assertTrue(store.getString(CSPreferenceConstants.OPENIGNORE).length() > 0); diff -r 2d1c891725ea -r 60053ab1f6b7 core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigSettingsTest.java --- a/core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigSettingsTest.java Fri Apr 03 09:33:43 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner.tests/src/com/nokia/carbide/cpp/codescanner/tests/CSConfigSettingsTest.java Fri Apr 03 09:35:11 2009 -0500 @@ -309,13 +309,27 @@ assertTrue(result.equals("secret")); } + public void testGetScriptIcons() throws Exception { + String result = ""; + result = this.configSettings.getScriptIcons(); + assertNull(result); + } + + public void testSetScriptIcons() throws Exception { + this.configSettings.setScriptIcons("myicon.png"); + String result = ""; + result = this.configSettings.getScriptIcons(); + assertNotNull(result); + assertTrue(result.equals("myicon.png")); + } + public void testGetScriptLFunctionIgnore() throws Exception { String result = ""; result = this.configSettings.getScriptLFunctionIgnore(); assertTrue(result.length() > 0); } - public void testSetLFunctionCClassIgnore() throws Exception { + public void testSetScriptLFunctionIgnore() throws Exception { this.configSettings.setScriptLFunctionIgnore("RunL|MyfuncL"); String result = ""; result = this.configSettings.getScriptLFunctionIgnore();