Compare commits

..

No commits in common. "50a42227b6e6a725e2e37abf2488e8eed83d4ebb" and "07e158377ef80d501dc019428d19f2f6390cb72e" have entirely different histories.

8 changed files with 7 additions and 8 deletions

View File

@ -32,7 +32,7 @@ class MyToolWindowFactory : ToolWindowFactory {
val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
if (JBCefApp.isSupported()) {
val jbcef = JBCefBrowser()
jbcef.component.preferredSize = Dimension(900,900)
jbcef.component.preferredSize = Dimension(800,900)
add(jbcef.component, BorderLayout.CENTER)
jbcef.loadURL("https://weread.qq.com/")
} else {

View File

@ -1,6 +1,6 @@
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin>
<id>com.github.cirry.wxreaderjetbrainsplugin</id>
<id>com.github.cirry.wereadjetbrainsplugin</id>
<name>Weread</name>

View File

@ -1,2 +1 @@
noSupport=Your IDEA doesn't support it, please enable JCEF.
projectService=Project service: {0}

View File

@ -29,11 +29,11 @@ class MyPluginTest : BasePlatformTestCase() {
// myFixture.testRename("foo.xml", "foo_after.xml", "a2")
// }
fun testProjectService() {
val projectService = project.service<MyProjectService>()
assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber())
}
// fun testProjectService() {
// val projectService = project.service<MyProjectService>()
//
// assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber())
// }
override fun getTestDataPath() = "src/test/testData/rename"
}