Skip to content

Commit

Permalink
Merge pull request #39 from DrMarcII/master
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
DrMarcII committed Apr 10, 2015
2 parents d462f9f + 88c729a commit a80022a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion dart/lib/async/webdriver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class _WebElementPageLoaderElement extends WebDriverPageLoaderElement {
Future<WebDriverPageLoaderElement> get shadowRoot async {
if (loader.useShadowDom) {
if ((await context.driver.execute(
'arguments[0].shadowRoot != null', [context]))) {
'return arguments[0].shadowRoot != null', [context]))) {
return new _ShadowRootPageLoaderElement(context, loader);
}
throw new PageLoaderException('$this does not have a shadowRoot');
Expand Down
6 changes: 0 additions & 6 deletions dart/test/sync/html_no_shadow_dom_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,3 @@ void main() {

plt.runTests();
}

class NoOpNodeValidator implements html.NodeValidator {
bool allowsAttribute(
html.Element element, String attributeName, String value) => true;
bool allowsElement(html.Element element) => true;
}
6 changes: 0 additions & 6 deletions dart/test/sync/html_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,3 @@ void main() {

plt.runTests();
}

class NoOpNodeValidator implements html.NodeValidator {
bool allowsAttribute(
html.Element element, String attributeName, String value) => true;
bool allowsElement(html.Element element) => true;
}

0 comments on commit a80022a

Please sign in to comment.