aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
authorIgor Minar2010-11-05 21:12:37 -0700
committerIgor Minar2010-11-09 22:27:31 -0800
commit324694a58b6d0ed33e05b511be4767573d9187dd (patch)
tree0b7243e721da17e9b5c5a1111ed9c0d28829b309 /src/widgets.js
parenteffcd340e9d41a2ab8368e4de06a1a83a206ac32 (diff)
downloadangular.js-324694a58b6d0ed33e05b511be4767573d9187dd.tar.bz2
Better example widget
- syntax highlighting - tabless design - rename widget to doc:example - rename widget files (wiki_widget.* -> doc_widget.*) - example section is now optional
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 43a16c8c..3666486d 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -398,15 +398,15 @@ angularWidget('option', function(){
*
* @scenario
* it('should load date filter', function(){
- * expect(element('.example ng\\:include').text()).toMatch(/angular\.filter\.date/);
+ * expect(element('.doc-example ng\\:include').text()).toMatch(/angular\.filter\.date/);
* });
* it('should change to hmtl filter', function(){
* select('url').option('angular.filter.html.html');
- * expect(element('.example ng\\:include').text()).toMatch(/angular\.filter\.html/);
+ * expect(element('.doc-example ng\\:include').text()).toMatch(/angular\.filter\.html/);
* });
* it('should change to blank', function(){
* select('url').option('(blank)');
- * expect(element('.example ng\\:include').text()).toEqual('');
+ * expect(element('.doc-example ng\\:include').text()).toEqual('');
* });
*/
angularWidget('ng:include', function(element){
@@ -489,11 +489,11 @@ angularWidget('ng:include', function(element){
*
* @scenario
* it('should start in settings', function(){
- * expect(element('.example ng\\:switch').text()).toEqual('Settings Div');
+ * expect(element('.doc-example ng\\:switch').text()).toEqual('Settings Div');
* });
* it('should change to home', function(){
* select('switch').option('home');
- * expect(element('.example ng\\:switch').text()).toEqual('Home Span');
+ * expect(element('.doc-example ng\\:switch').text()).toEqual('Home Span');
* });
*/
var ngSwitch = angularWidget('ng:switch', function (element){