From 4421f3d43525437bd939f647604480c1ed126e5e Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 12 Jul 2011 02:18:46 +0200 Subject: fix(docs): update docs to reflect new $location and fix e2e tests --- src/markups.js | 12 ++++++------ src/widgets.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/markups.js b/src/markups.js index 933d91f4..d3af25b4 100644 --- a/src/markups.js +++ b/src/markups.js @@ -166,10 +166,10 @@ angularTextMarkup('option', function(text, textNode, parentElement){
link 1 (link, don't reload)
link 2 (link, don't reload)
- link 3 (link, reload!)
+ link 3 (link, reload!)
anchor (link, don't reload)
anchor (no link)
- link (link, change hash) + link (link, change hash) it('should execute ng:click but not reload when href without value', function() { @@ -187,8 +187,8 @@ angularTextMarkup('option', function(text, textNode, parentElement){ it('should execute ng:click and change url when ng:href specified', function() { element('#link-3').click(); expect(input('value').val()).toEqual('3'); - expect(element('#link-3').attr('href')).toBe("#123"); - expect(browser().location().hash()).toEqual('123'); + expect(element('#link-3').attr('href')).toBe("#!/123"); + expect(browser().location().hash()).toEqual('!/123'); }); it('should execute ng:click but not reload when href empty string and name specified', function() { @@ -206,8 +206,8 @@ angularTextMarkup('option', function(text, textNode, parentElement){ it('should only change url when only ng:href', function() { input('value').enter('6'); element('#link-6').click(); - expect(browser().location().hash()).toEqual('/6'); - expect(element('#link-6').attr('href')).toBe("#/6"); + expect(browser().location().hash()).toEqual('!/6'); + expect(element('#link-6').attr('href')).toBe("#!/6"); }); diff --git a/src/widgets.js b/src/widgets.js index 254331c0..b0430b95 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -1391,9 +1391,9 @@ angularWidget("@ng:non-bindable", noop); function OverviewCtrl(){}
- overview | - bootstrap | - undefined + overview | + bootstrap | + undefined
-- cgit v1.2.3