Upgrade to angularjs 1.2.0 rc1
This commit is contained in:
parent
d223dfd662
commit
d6b021bfaf
674 changed files with 79667 additions and 62269 deletions
19
lib/angular/docs/partials/guide/dev_guide.services.testing_services.html
Normal file → Executable file
19
lib/angular/docs/partials/guide/dev_guide.services.testing_services.html
Normal file → Executable file
|
@ -1,9 +1,9 @@
|
|||
<h1><code ng:non-bindable=""></code>
|
||||
<span class="hint"></span>
|
||||
<a href="http://github.com/angular/angular.js/edit/master/docs/content/guide/dev_guide.services.testing_services.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable=""></code>
|
||||
<div><span class="hint"></span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><a href="http://github.com/angular/angular.js/edit/master/docs/content/guide/dev_guide.services.testing_services.ngdoc" class="improve-docs btn btn-primary">Improve this doc</a><p>The following is a unit test for the 'notify' service in the 'Dependencies' example in <a href="guide/dev_guide.services.creating_services">Creating Angular Services</a>. The unit test example uses Jasmine
|
||||
<div><div class="developer-guide-page developer-guide-angular-services-testing-angular-services-page"><p>The following is a unit test for the 'notify' service in the 'Dependencies' example in <a href="guide/dev_guide.services.creating_services">Creating Angular Services</a>. The unit test example uses Jasmine
|
||||
spy (mock) instead of a real browser alert.</p>
|
||||
|
||||
<pre class="prettyprint linenums">
|
||||
var mock, notify;
|
||||
|
||||
|
@ -46,18 +46,15 @@ it('should clear messages after alert', function() {
|
|||
expect(mock.alert.mostRecentCall.args).toEqual(["more\ntwo\nthird"]);
|
||||
});
|
||||
</pre>
|
||||
|
||||
<h3>Related Topics</h3>
|
||||
|
||||
<h3>Related Topics</h2>
|
||||
<ul>
|
||||
<li><a href="guide/dev_guide.services.understanding_services">Understanding Angular Services</a></li>
|
||||
<li><a href="guide/dev_guide.services.creating_services">Creating Angular Services</a></li>
|
||||
<li><a href="guide/dev_guide.services.managing_dependencies">Managing Service Dependencies</a></li>
|
||||
<li><a href="guide/dev_guide.services.injecting_controllers">Injecting Services Into Controllers</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Related API</h3>
|
||||
|
||||
<h2>Related API</h3>
|
||||
<ul>
|
||||
<li><a href="api/ng">Angular Service API</a></li>
|
||||
</ul></div>
|
||||
</ul>
|
||||
</div></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue