Skip to content

Commit

Permalink
[GR-15178] FileTypeDetectorTest and MIMETypeTest are failing.
Browse files Browse the repository at this point in the history
PullRequest: graal/3398
  • Loading branch information
tzezula committed Apr 15, 2019
2 parents ff37248 + 4515f43 commit d2e9226
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
import org.junit.Assert;
import org.junit.Test;

import com.oracle.truffle.api.TruffleLanguage.Registration;
import com.oracle.truffle.api.test.ReflectionUtils;

public class SourceAPITest {
Expand Down Expand Up @@ -683,15 +682,4 @@ public void testNoContentSource() {
assertTrue(section.hasColumns());
assertEquals("", section.getCharacters());
}

@Registration(id = "TestJava", name = "", characterMimeTypes = "text/x-java")
public static class TestJavaLanguage extends ProxyLanguage {

}

@Registration(id = "TestJS", name = "", byteMimeTypes = "application/test-js")
public static class TestJSLanguage extends ProxyLanguage {

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ public Charset findEncoding(TruffleFile file) throws IOException {
}

@TruffleLanguage.Registration(id = "TestFooXML", name = "", byteMimeTypes = "text/foo+xml", fileTypeDetectors = {CommonMIMETypeTestDetector.class})
public static class TestJSLanguage extends ProxyLanguage {
public static class TestFooXMLLanguage extends ProxyLanguage {
}
}

0 comments on commit d2e9226

Please sign in to comment.