Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: pkg/webdriver/lib/webdriver.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/src/config.dart ('k') | runtime/lib/regexp_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/webdriver/lib/webdriver.dart
diff --git a/pkg/webdriver/lib/webdriver.dart b/pkg/webdriver/lib/webdriver.dart
index 8291db842d1a13b821d11e9a24ad0397f607e4c9..efb6a415c3671a54d40694c2c1277768bf8c8c20 100644
--- a/pkg/webdriver/lib/webdriver.dart
+++ b/pkg/webdriver/lib/webdriver.dart
@@ -201,7 +201,7 @@ class WebDriverBase {
*/
WebDriverBase.fromUrl([this._url = 'http://localhost:4444/wd/hub']) {
// Break out the URL components.
- var re = new RegExp('[^:/]+://([^/]+)(/.*)');
+ var re = const RegExp('[^:/]+://([^/]+)(/.*)');
var matches = re.firstMatch(_url);
_host = matches[1];
_path = matches[2];
« no previous file with comments | « pkg/unittest/lib/src/config.dart ('k') | runtime/lib/regexp_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698