addressbar
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -138,2 +138,8 @@ var URI = require('urijs'); | ||
Object.defineProperty(eventEmitter, 'pathname', { | ||
get: function () { | ||
return URI(location.href).pathname(); | ||
} | ||
}); | ||
/* | ||
@@ -140,0 +146,0 @@ This code is from the Page JS source code. Amazing work on handling all |
{ | ||
"name": "addressbar", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Makes the addressbar of the browser work just like a normal input", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,3 @@ # addressbar | ||
addressbar.hostname // "www.example.com" | ||
addressbar.pathname // "/" | ||
@@ -30,0 +31,0 @@ // Prevent route changes on hyperlinks |
@@ -372,5 +372,7 @@ var webdriver = require('selenium-webdriver'); | ||
}); | ||
driver.findElement(by.id('pathname')).getText().then(function (text) { | ||
test.equal(text, '/tests/uri/'); | ||
}); | ||
driver.quit().then(test.done); | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
309661
1563
49