-
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.
* Added Under annotation * Added ability to proxy dependent field * Added implementation for scoped fields * Added tests
- Loading branch information
Showing
8 changed files
with
146 additions
and
29 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
src/main/java/io/github/uchagani/stagehand/annotations/Under.java
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,12 @@ | ||
package io.github.uchagani.stagehand.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface Under { | ||
String value(); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/test/java/io/github/uchagani/stagehand/tests/HTMLConstants.java
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package io.github.uchagani.stagehand.tests; | ||
|
||
public class HTMLConstants { | ||
public static final String SIMPLE_HTML = "<!DOCTYPE html><h2 id=headerId>Header Text</h2><p class=paragraph>This is a paragraph.</p>"; | ||
public static final String SIMPLE_HTML = "<!DOCTYPE html><h2 id=headerId>Header Text</h2><p class=paragraph>This is a paragraph.<div id=firstNameFormDiv><form><input placeholder=\"First Name\"></form></div><div id=lastNameFormDiv><form><input placeholder=\"Last Name\"></form><input placeholder=City></div>"; | ||
public static final String IFRAME_HTML = "<!DOCTYPE html><iframe height=500 width=800 id=parentIframe srcdoc=\"<p id=iframe-paragraph>Hello from inside an iframe!</p><iframe id=childIframe height=500 width=800 srcdoc='<p id=child-iframe-paragraph>Child iFrame paragraph</p>' </iframe>\"></iframe>"; | ||
} |
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