forked from vaadin/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: Rename dev mode gizmo to dev tools (vaadin#13679)
- Loading branch information
Showing
38 changed files
with
354 additions
and
360 deletions.
There are no files selected for viewing
264 changes: 132 additions & 132 deletions
264
...t/src/main/frontend/VaadinDevmodeGizmo.ts → ...ent/src/main/frontend/vaadin-dev-tools.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const { describe, it } = intern.getPlugin('interface.bdd'); | ||
const { assert } = intern.getPlugin("chai"); | ||
|
||
import { DevTools } from "../../main/frontend/vaadin-dev-tools"; | ||
|
||
describe('vaadin-dev-tools', () => { | ||
|
||
it('should connect to port-hostname.gitpod.io with Spring Boot Devtools', () => { | ||
const devTools = document.createElement('vaadin-dev-tools'); | ||
devTools.setAttribute('url', ''); | ||
devTools.setAttribute('backend', 'SPRING_BOOT_DEVTOOLS'); | ||
devTools.setAttribute('springBootLiveReloadPort', '35729'); | ||
let location = { | ||
'protocol': 'https', | ||
'hostname': 'abc-12345678-1234-1234-1234-1234567890ab.ws-eu01.gitpod.io' | ||
}; | ||
assert.equal(devTools.getSpringBootWebSocketUrl(location), | ||
'ws://35729-12345678-1234-1234-1234-1234567890ab.ws-eu01.gitpod.io'); | ||
}); | ||
|
||
it('should use base URI', () => { | ||
const devTools = document.createElement('vaadin-dev-tools'); | ||
devTools.setAttribute('url', 'http://localhost:8080/context/vaadinServlet'); | ||
devTools.setAttribute('backend', 'HOTSWAP_AGENT'); | ||
|
||
assert.equal(devTools.getDedicatedWebSocketUrl(), | ||
'ws://localhost:8080/context/vaadinServlet?v-r=push&debug_window'); | ||
}); | ||
|
||
it('should have a new message on tray when error occurs', () => { | ||
const devTools = document.createElement('vaadin-dev-tools'); | ||
devTools.setAttribute('url', ''); | ||
devTools.setAttribute('backend', 'HOTSWAP_AGENT'); | ||
devTools.openWebSocketConnection(); | ||
devTools.javaConnection.handleError('TEST'); | ||
assert.equal(devTools.javaStatus, 'error'); | ||
assert.equal(devTools.messages.length, 1); | ||
assert.equal(devTools.messages[0].type, 'error'); | ||
assert.equal(devTools.messages[0].message, 'TEST'); | ||
|
||
}); | ||
}); |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.