From 0649009624e8e7bd6fb39537f62c6f00facbfb16 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 22 Sep 2010 13:24:40 +0200 Subject: Refactored the Browser: - change from using prototype to inner functions to help with better compression - removed watchers (url/cookie) and introduced a poller concept - moved the checking of URL and cookie into services which register with poolers Benefits: - Smaller minified file - can call $browser.poll() from tests to simulate polling - single place where setTimeout needs to be tested - More testable $browser --- scenario/browser.html | 22 ++++++++++++++++++++++ scenario/widgets.html | 6 +++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 scenario/browser.html (limited to 'scenario') diff --git a/scenario/browser.html b/scenario/browser.html new file mode 100644 index 00000000..eac43692 --- /dev/null +++ b/scenario/browser.html @@ -0,0 +1,22 @@ + + + + + + + +

Should mark input field red and create hover

+ + +

Should reflect changes in URL

+
$location={{$location}}
+ hash:
+ hashPath:
+ hashSearch:
+ +

Should reflect changes in Cookie

+
$cookies={{$cookies}}
+ $cookies:
+ + + diff --git a/scenario/widgets.html b/scenario/widgets.html index d5285ea6..08443d2a 100644 --- a/scenario/widgets.html +++ b/scenario/widgets.html @@ -1,8 +1,8 @@ - - + + - + -- cgit v1.2.3