Compare commits
2 Commits
07e158377e
...
50a42227b6
Author | SHA1 | Date | |
---|---|---|---|
50a42227b6 | |||
79391f30e3 |
@ -32,7 +32,7 @@ class MyToolWindowFactory : ToolWindowFactory {
|
||||
val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
|
||||
if (JBCefApp.isSupported()) {
|
||||
val jbcef = JBCefBrowser()
|
||||
jbcef.component.preferredSize = Dimension(800,900)
|
||||
jbcef.component.preferredSize = Dimension(900,900)
|
||||
add(jbcef.component, BorderLayout.CENTER)
|
||||
jbcef.loadURL("https://weread.qq.com/")
|
||||
} else {
|
@ -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.wereadjetbrainsplugin</id>
|
||||
<id>com.github.cirry.wxreaderjetbrainsplugin</id>
|
||||
|
||||
<name>Weread</name>
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
noSupport=Your IDEA doesn't support it, please enable JCEF.
|
||||
projectService=Project service: {0}
|
||||
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user