-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading view mode: Basic functionality #44
Conversation
Pull Request Test Coverage Report for Build 220
💛 - Coveralls |
Test coverage dropped by 0.7% as it is very difficult to test for certain cases. |
return stateCheck; | ||
} else { | ||
return stateCheck && exception.get().getMessage().equals(other.exception.get().getMessage()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible one exception is null but the other isn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I'll fix this.
return output; | ||
} | ||
|
||
private static Document convertStringToDocument(String xmlStr) throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throws Exception
do we have a more specific type here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a couple: javax.xml.parsers.ParserConfigurationException
, org.xml.sax.SAXException
, java io.IOException
private ViewMode viewMode; | ||
private Consumer<CommandResult> onSuccess; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll merge this for now but note this is why we usually don't want to do any processing on the UI side :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The most recent commit doesn't have the CommandResult consumer any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Resolves #45
Resolves part of #27
How to use:
view reader
for reading viewview browser
for browser viewHow it works:
When reading view is selected,
BrowserPanel
loads the original web page first, then inputs the resulting HTML into Crux for processing, and finally loads the cleaned-up HTML.