diff --git a/test/carbon-location.html b/test/carbon-location.html
index 2ed1ef5..84df23d 100644
--- a/test/carbon-location.html
+++ b/test/carbon-location.html
@@ -46,14 +46,6 @@
Polymer.Base.fire('location-changed', {}, { node: window });
}
- // iron-location listens for the click, if it matches the url space
- // configuration, then it prevents default.
- function setLocationClick(url) {
- var clickableLink = fixture('ClickableLink');
- clickableLink.setAttribute('href', url);
- MockInteractions.tap(clickableLink);
- }
-
function assign(a, b) {
if (Object.assign) {
return Object.assign.apply(Object, arguments);
@@ -141,48 +133,6 @@
});
});
});
-
- suite('manipulating the urlSpace', function() {
- var pageUrl;
- var originalLocation;
-
- setup(function() {
- pageUrl = carbonLocation.$$('iron-location');
- originalLocation = window.location.toString();
- });
-
- teardown(function() {
- setLocation(originalLocation);
- });
-
- test('changing the urlSpace pattern and testing paths', function() {
- setLocationClick('/test');
-
- carbonLocation.urlSpaceRegex = '/foo';
-
- expect(carbonLocation.route.path).to.be.equal('/test');
-
- setLocationClick('/foo');
- expect(carbonLocation.route.path).to.be.equal('/foo');
-
- setLocationClick('/foo/bar');
- expect(carbonLocation.route.path).to.be.equal('/foo/bar');
-
- setLocationClick('/bar');
- expect(carbonLocation.route.path).to.be.equal('/foo/bar');
-
- carbonLocation.urlSpaceRegex = '/foo/[0-9]+';
-
- setLocationClick('/foo/123');
- expect(carbonLocation.route.path).to.be.equal('/foo/123');
-
- setLocationClick('/foo/');
- expect(carbonLocation.route.path).to.be.equal('/foo/123');
-
- setLocationClick('/foo/456');
- expect(carbonLocation.route.path).to.be.equal('/foo/456');
- });
- });
});
suite('using the hash as the route path', function() {