This looks pretty good to me. A couple of minor comments in the review, but ...
16 years, 2 months ago
(2009-06-29 13:18:48 UTC)
#2
This looks pretty good to me. A couple of minor comments in the review, but
there's nothing major :)
http://codereview.appspot.com/87067/diff/1/4
File tests/com/google/caja/plugin/DomitaTest.java (right):
http://codereview.appspot.com/87067/diff/1/4#newcode80
Line 80: driver.findElements(By.xpath("//*[contains(@class,'clickme')]/*"));
If you find this slow in IE, then you can use:
WebElement parent = driver.findElement(By.className("clickme"));
List<WebElement> clickingList = parent.findElements(By.xpath("*"));
The first lookup will be fast, and you're then only scanning a subset of the DOM
for the child nodes.
http://codereview.appspot.com/87067/diff/1/4#newcode99
Line 99: //driver.close();
driver.quit() will properly release all the resources. "close" only closes a
single window (which won't quit the browser if more than one window is open)
http://codereview.appspot.com/87067/diff/1/28 File build.xml (right): http://codereview.appspot.com/87067/diff/1/28#newcode81 Line 81: <pathelement path="${third_party}/java/webdriver/commons-collections-3.2.1.jar"/> Can you reformat to 80 cols ...
16 years, 2 months ago
(2009-06-29 23:24:48 UTC)
#3
Thank you for the review. It seems findElements(By.className("clickme")) does not work correctly. It returns an ...
16 years, 2 months ago
(2009-06-30 16:53:46 UTC)
#4
Thank you for the review.
It seems findElements(By.className("clickme")) does not work correctly. It
returns an empty list.
Best,
Ziqing
On 2009/06/29 13:18:48, Simon Stewart wrote:
> This looks pretty good to me. A couple of minor comments in the review, but
> there's nothing major :)
>
> http://codereview.appspot.com/87067/diff/1/4
> File tests/com/google/caja/plugin/DomitaTest.java (right):
>
> http://codereview.appspot.com/87067/diff/1/4#newcode80
> Line 80: driver.findElements(By.xpath("//*[contains(@class,'clickme')]/*"));
> If you find this slow in IE, then you can use:
>
> WebElement parent = driver.findElement(By.className("clickme"));
> List<WebElement> clickingList = parent.findElements(By.xpath("*"));
>
> The first lookup will be fast, and you're then only scanning a subset of the
DOM
> for the child nodes.
>
> http://codereview.appspot.com/87067/diff/1/4#newcode99
> Line 99: //driver.close();
> driver.quit() will properly release all the resources. "close" only closes a
> single window (which won't quit the browser if more than one window is open)
LGTM with one final code style comment. Thanks! http://codereview.appspot.com/87067/diff/2004/3004 File tests/com/google/caja/plugin/domita_test.html (right): http://codereview.appspot.com/87067/diff/2004/3004#newcode291 Line 291: ...
16 years, 2 months ago
(2009-06-30 20:15:34 UTC)
#6
test http://codereview.appspot.com/87067/diff/1/4 File tests/com/google/caja/plugin/DomitaTest.java (right): http://codereview.appspot.com/87067/diff/1/4#newcode1 Line 1: // Copyright 2009 Google Inc. All Rights ...
16 years, 2 months ago
(2009-06-30 20:33:36 UTC)
#8
Issue 87067: Initial check-in of the code.
(Closed)
Created 16 years, 2 months ago by maoziqing
Modified 16 years, 1 month ago
Reviewers: ihab.awad, Simon Stewart
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 12