Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r 1.7/com/meterware/httpunit/BlockElement.java 1.7-patch-2/com/meterware/httpunit/BlockElement.java
- 3c3
- < * $Id: BlockElement.java 951 2008-05-02 10:11:40Z wolfgang_fahl $
- ---
- > * $Id: BlockElement.java 984 2008-05-20 20:26:21Z russgold $
- diff -r 1.7/com/meterware/httpunit/Button.java 1.7-patch-2/com/meterware/httpunit/Button.java
- 3c3
- < * $Id: Button.java 871 2008-04-01 15:02:41Z wolfgang_fahl $
- ---
- > * $Id: Button.java 984 2008-05-20 20:26:21Z russgold $
- Only in 1.7-patch-2/com/meterware/httpunit/dom: DocumentBuilderFactoryFilter.java
- diff -r 1.7/com/meterware/httpunit/HTMLElementBase.java 1.7-patch-2/com/meterware/httpunit/HTMLElementBase.java
- 3c3
- < * $Id: HTMLElementBase.java 839 2008-03-29 23:30:13Z wolfgang_fahl $
- ---
- > * $Id: HTMLElementBase.java 984 2008-05-20 20:26:21Z russgold $
- diff -r 1.7/com/meterware/httpunit/HTMLElementScriptable.java 1.7-patch-2/com/meterware/httpunit/HTMLElementScriptable.java
- 3c3
- < * $Id: HTMLElementScriptable.java 951 2008-05-02 10:11:40Z wolfgang_fahl $
- ---
- > * $Id: HTMLElementScriptable.java 984 2008-05-20 20:26:21Z russgold $
- diff -r 1.7/com/meterware/httpunit/scripting/ScriptableDelegate.java 1.7-patch-2/com/meterware/httpunit/scripting/ScriptableDelegate.java
- 3c3
- < * $Id: ScriptableDelegate.java 951 2008-05-02 10:11:40Z wolfgang_fahl $
- ---
- > * $Id: ScriptableDelegate.java 984 2008-05-20 20:26:21Z russgold $
- diff -r 1.7/com/meterware/httpunit/WebClient.java 1.7-patch-2/com/meterware/httpunit/WebClient.java
- 30a31
- > import com.meterware.httpunit.dom.DocumentBuilderFactoryFilter;
- 35a37,40
- > import javax.xml.parsers.DocumentBuilder;
- > import javax.xml.parsers.DocumentBuilderFactory;
- > import javax.xml.parsers.ParserConfigurationException;
- >
- 63a69
- > private DocumentBuilderFactory documentBuilderFactory;
- 417a424,434
- > documentBuilderFactory = new DocumentBuilderFactoryFilter(DocumentBuilderFactory.newInstance()) {
- > public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException {
- > DocumentBuilder db = super.newDocumentBuilder();
- > db.setEntityResolver( new HttpUnitUtils.ClasspathEntityResolver() );
- > return db;
- > }
- > };
- > }
- >
- > public DocumentBuilderFactory getDocumentBuilderFactory() {
- > return documentBuilderFactory;
- 419a437,439
- > public void setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory) {
- > this.documentBuilderFactory = documentBuilderFactory;
- > }
- diff -r 1.7/com/meterware/httpunit/WebForm.java 1.7-patch-2/com/meterware/httpunit/WebForm.java
- 107,111c107,109
- < if (button==null || button.doOnClickSequence(x, y)) {
- < result= doFormSubmit( button, x, y );
- < } else {
- < result=getCurrentFrameContents();
- < }
- ---
- > if (button == null) throw new IllegalSubmitButtonException( "?", "?" );
- > button.doOnClickSequence(x, y);
- > result=getCurrentFrameContents();
- diff -r 1.7/com/meterware/httpunit/WebRequestSource.java 1.7-patch-2/com/meterware/httpunit/WebRequestSource.java
- 2c2
- < * $Id: WebRequestSource.java 951 2008-05-02 10:11:40Z wolfgang_fahl $
- ---
- > * $Id: WebRequestSource.java 984 2008-05-20 20:26:21Z russgold $
- diff -r 1.7/com/meterware/httpunit/WebResponse.java 1.7-patch-2/com/meterware/httpunit/WebResponse.java
- 47a48,49
- > import javax.xml.parsers.ParserConfigurationException;
- >
- 574c576
- < return HttpUnitUtils.parse( new InputSource( new StringReader( getText() ) ) );
- ---
- > return _client.getDocumentBuilderFactory().newDocumentBuilder().parse(new InputSource( new StringReader( getText() ) ));
- 575a578,579
- > throw new SAXException( e );
- > } catch (ParserConfigurationException e) {
- Only in 1.7-patch-2/: META-INF
- Only in 1.7-patch-2/: org
- Only in 1.7-patch-2/: web-app_2_2.dtd
- Only in 1.7-patch-2/: web-app_2_3.dtd
- Only in 1.7-patch-2/: web-app_2_4.xsd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement