test data for middle matching issues

This commit is contained in:
Konstantin Bulenkov
2013-02-21 12:58:34 +01:00
parent 50669ac411
commit e7cef50148
7 changed files with 83 additions and 1 deletions
@@ -0,0 +1,23 @@
interface AnonymousMatcher2 {
void isControlDown();
void getIcon();
int MIX_SCORE = 5;
class A {
Icon getIcon(){return null;}
boolean isCoin(){return false;}
}
class B {
Icon getIcon(){return null;}
boolean isCoin(){return false;}
}
Object o = new Object() <caret>{
Icon getIcon() {
return null;
}
boolean isCoin(){return false;}
};
}
@@ -0,0 +1,10 @@
-AnonymousMatcher2.java
-AnonymousMatcher2
getIcon(): void
-o: Object = new Object() {...}
-$1
[getIcon(): Icon]
-A
getIcon(): Icon
-B
getIcon(): Icon
@@ -0,0 +1,6 @@
interface Matcher1<caret> {
void isControlDown();
void getIcon();
int MIX_SCORE = 5;
}
@@ -0,0 +1,3 @@
-Matcher1.java
-Matcher1
[getIcon(): void]
@@ -0,0 +1,22 @@
interface Matcher2 {
void isControlDown();
void getIcon();
int MIX_SCORE = 5;
class A {
Icon getIcon(){return null;}
boolean isCoin(){return false;}
}
class B <caret>{
Icon getIcon(){return null;}
boolean isCoin(){return false;}
}
Object o = new Object() {
Icon getIcon() {
return null;
}
};
}
@@ -0,0 +1,7 @@
-Matcher2.java
-Matcher2
getIcon(): void
-A
getIcon(): Icon
-B
[getIcon(): Icon]
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,6 +15,10 @@
*/
package com.intellij.ide.fileStructure;
import com.intellij.idea.Bombed;
import java.util.Calendar;
/**
* @author Konstantin Bulenkov
*/
@@ -33,4 +37,11 @@ public class JavaFileStructureFilteringTest extends JavaFileStructureTestCase {
public void testSelectLeafFirst2() throws Exception {checkTree("clear");}
public void testSelectLeafFirst3() throws Exception {checkTree("clear");}
public void testSelectLeafFirst4() throws Exception {checkTree("clear");}
@Bombed(user = "peter", month = Calendar.MARCH, day = 1)
public void testMatcher1() throws Exception {checkTree("ico");}
@Bombed(user = "peter", month = Calendar.MARCH, day = 1)
public void testMatcher2() throws Exception {checkTree("ico");}
@Bombed(user = "peter", month = Calendar.MARCH, day = 1)
public void testAnonymousMatcher2() throws Exception {checkTree("ico");}
}