From: <ce...@us...> - 2004-01-12 17:26:39
|
Update of /cvsroot/csseditor/net.sourceforge.csseditor.tests/src/net/sourceforge/csseditor/tests/internal/text In directory sc8-pr-cvs1:/tmp/cvs-serv27265/src/net/sourceforge/csseditor/tests/internal/text Modified Files: CssCodeScannerTest.java Log Message: Removed unneeded 'this' qualifiers Index: CssCodeScannerTest.java =================================================================== RCS file: /cvsroot/csseditor/net.sourceforge.csseditor.tests/src/net/sourceforge/csseditor/tests/internal/text/CssCodeScannerTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CssCodeScannerTest.java 27 Dec 2003 18:56:38 -0000 1.3 --- CssCodeScannerTest.java 12 Jan 2004 17:26:36 -0000 1.4 *************** *** 55,60 **** */ protected void setUp() throws Exception { ! this.profile = new Css2Profile(null); ! this.store = new PreferenceStore(); } --- 55,60 ---- */ protected void setUp() throws Exception { ! profile = new Css2Profile(null); ! store = new PreferenceStore(); } *************** *** 63,68 **** */ protected void tearDown() throws Exception { ! this.profile = null; ! this.store = null; } --- 63,68 ---- */ protected void tearDown() throws Exception { ! profile = null; ! store = null; } *************** *** 70,76 **** public void testAtKeywordHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_AT_KEYWORD_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_AT_KEYWORD_BOLD, true); ITokenScanner scanner = prepareScanner("@import"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); --- 70,76 ---- public void testAtKeywordHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_AT_KEYWORD_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_AT_KEYWORD_BOLD, true); ITokenScanner scanner = prepareScanner("@import"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); *************** *** 78,84 **** public void testCdoHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_COMMENT_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_COMMENT_BOLD, true); ITokenScanner scanner = prepareScanner("<!--"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); --- 78,84 ---- public void testCdoHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_COMMENT_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_COMMENT_BOLD, true); ITokenScanner scanner = prepareScanner("<!--"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); *************** *** 86,92 **** public void testCdcHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_COMMENT_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_COMMENT_BOLD, true); ITokenScanner scanner = prepareScanner("-->"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); --- 86,92 ---- public void testCdcHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_COMMENT_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_COMMENT_BOLD, true); ITokenScanner scanner = prepareScanner("-->"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); *************** *** 94,100 **** public void testPropertyHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_PROPERTY_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_PROPERTY_BOLD, true); ITokenScanner scanner = prepareScanner("text-align:"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); --- 94,100 ---- public void testPropertyHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_PROPERTY_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_PROPERTY_BOLD, true); ITokenScanner scanner = prepareScanner("text-align:"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); *************** *** 102,108 **** public void testPropertyWithWhitespaceHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_PROPERTY_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_PROPERTY_BOLD, true); ITokenScanner scanner = prepareScanner("text-align :"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); --- 102,108 ---- public void testPropertyWithWhitespaceHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_PROPERTY_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_PROPERTY_BOLD, true); ITokenScanner scanner = prepareScanner("text-align :"); //$NON-NLS-1$ assertHighlight(scanner.nextToken()); *************** *** 110,116 **** public void testPseudoClassHighlighted() throws Exception { ! PreferenceConverter.setValue(this.store, CssEditorPreferences.EDITOR_PSEUDO_CLASS_COLOR, HIGHLIGHT_COLOR); ! this.store.setValue(CssEditorPreferences.EDITOR_PSEUDO_CLASS_BOLD, true); ITokenScanner scanner = prepareScanner(":link"); //$NON-NLS-1$ --- 110,116 ---- public void testPseudoClassHighlighted() throws Exception { ! PreferenceConverter.setValue(store, CssEditorPreferences.EDITOR_PSEUDO_CLASS_COLOR, HIGHLIGHT_COLOR); ! store.setValue(CssEditorPreferences.EDITOR_PSEUDO_CLASS_BOLD, true); ITokenScanner scanner = prepareScanner(":link"); //$NON-NLS-1$ *************** *** 142,146 **** */ private ITokenScanner prepareScanner(String text) { ! CssTextTools tools = new CssTextTools(this.store, this.profile); ITokenScanner scanner = tools.getCodeScanner(); IDocument document = new Document(text); --- 142,146 ---- */ private ITokenScanner prepareScanner(String text) { ! CssTextTools tools = new CssTextTools(store, profile); ITokenScanner scanner = tools.getCodeScanner(); IDocument document = new Document(text); |