Last active
August 29, 2015 13:56
-
-
Save DinisCruz-Dev/9186835 to your computer and use it in GitHub Desktop.
Create a Eclipse views to show AngularJS tests executed with Karma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eclipse.views.create("Karma Runner") | |
.clear() | |
.add.browser() | |
.open("http://localhost:9879/__karma/") | |
eclipse.views.create("Website") | |
.clear() | |
.add.browser() | |
.open("http://localhost:9879/index.html") | |
def view = eclipse.views.create("Karma Runner - debug ").clear() | |
.set.layout.grid(); | |
def runButton = view.add.toolBar() | |
.add_Button("run", images.get("IMG_TOOL_REDO_HOVER")); | |
def browser = view.add.panel() | |
.set.layout.grid_Grab().add.browser(); | |
def openKarmaDebug = new Runnable() { public void run() | |
{ | |
Thread.start { | |
browser.open("http://localhost:9879/__karma/debug.html"); | |
view.refresh(); | |
}; | |
}}; | |
runButton.onClick(openKarmaDebug); | |
view.refresh(); | |
openKarmaDebug.run(); | |
//Config:UIThread_False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment