From e205bd7137fd793d223dbe3e020a628f8e7d98f3 Mon Sep 17 00:00:00 2001 From: Kenneth R. Culp Date: Fri, 29 Apr 2011 10:04:40 -0700 Subject: Update tutorial docs. --- docs/tutorial.step_6.ngdoc | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'docs/tutorial.step_6.ngdoc') diff --git a/docs/tutorial.step_6.ngdoc b/docs/tutorial.step_6.ngdoc index dc7b07ed..09d2c713 100755 --- a/docs/tutorial.step_6.ngdoc +++ b/docs/tutorial.step_6.ngdoc @@ -7,8 +7,7 @@ {@link tutorial.step_5 Previous} {@link http://angular.github.com/angular-phonecat/step-6/app Example} {@link tutorial Tutorial Home} -{@link -https://github.com/angular/angular-phonecat/commit/2fb113a4da9b6d19e17627f351f0681befcccdc0 Code +{@link https://github.com/angular/angular-phonecat/compare/step-5...step-6 Code Diff} {@link tutorial.step_7 Next} @@ -77,6 +76,17 @@ __`app/phones/phones.json`__ (sample snippet): ] +__`test/e2e/scenarios.js`__: +
+...
+    it('should render phone specific links', function() {
+      input('query').enter('nexus');
+      element('.phones li a').click();
+      expect(browser().location().hash()).toBe('/phones/nexus-s');
+    });
+...
+
+ ## Discussion: * Note that we're using {@link guide.expression angular expressions} enclosed in the now-familiar @@ -88,13 +98,15 @@ That directive prevents the browser from treating the angular `{{ exppression }} literally, as it would do if we tried to use markup in a regular `src` attribute. Use `ng:src` to keep the browser from eagerly making an extra http request to an invalid location. +* We expanded our end-to-end test to verify that the app is generating correct links to the phone +views we will implement in the upcoming steps. + - -- cgit v1.2.3
{@link tutorial.step_5 Previous} {@link http://angular.github.com/angular-phonecat/step-6/app Example} {@link tutorial Tutorial Home}{@link -https://github.com/angular/angular-phonecat/commit/2fb113a4da9b6d19e17627f351f0681befcccdc0 Code +{@link https://github.com/angular/angular-phonecat/compare/step-5...step-6 Code Diff} {@link tutorial.step_7 Next}