From bda6645ebd61acaacc17837524db87f14e9b85ff Mon Sep 17 00:00:00 2001 From: X1011 Date: Sat, 13 Apr 2013 12:27:05 -0700 Subject: [PATCH 1/5] first test for progress element --- .../forms/the-progress-element/progress.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 html/semantics/forms/the-progress-element/progress.html diff --git a/html/semantics/forms/the-progress-element/progress.html b/html/semantics/forms/the-progress-element/progress.html new file mode 100644 index 00000000000000..bdf41603ca3cdf --- /dev/null +++ b/html/semantics/forms/the-progress-element/progress.html @@ -0,0 +1,18 @@ + +The progress element + + + + + + + + +
+ \ No newline at end of file From 0ac4653842203b5102eb23526ad868ef685e9cc6 Mon Sep 17 00:00:00 2001 From: X1011 Date: Sat, 13 Apr 2013 13:55:32 -0700 Subject: [PATCH 2/5] 2 more tests for progress --- .../semantics/forms/the-progress-element/progress.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/html/semantics/forms/the-progress-element/progress.html b/html/semantics/forms/the-progress-element/progress.html index bdf41603ca3cdf..ef7c4a90c687eb 100644 --- a/html/semantics/forms/the-progress-element/progress.html +++ b/html/semantics/forms/the-progress-element/progress.html @@ -7,6 +7,7 @@ +
\ No newline at end of file From 5e704f79fce0e5baee0ff8ab637bf0952541f078 Mon Sep 17 00:00:00 2001 From: X1011 Date: Sat, 13 Apr 2013 15:24:44 -0700 Subject: [PATCH 3/5] use leading 0 before decimal --- html/semantics/forms/the-progress-element/progress.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/semantics/forms/the-progress-element/progress.html b/html/semantics/forms/the-progress-element/progress.html index ef7c4a90c687eb..6ddd32793c5526 100644 --- a/html/semantics/forms/the-progress-element/progress.html +++ b/html/semantics/forms/the-progress-element/progress.html @@ -18,7 +18,7 @@ }, "indeterminate progress bar should have position -1"); test(function() { - assert_equals(quarter.position, .25); + assert_equals(quarter.position, 0.25); }, "determinate progress bar should have fractional position"); test(function() { From 49e40fb3ecb85894467926a6b301c773fc712026 Mon Sep 17 00:00:00 2001 From: X1011 Date: Sat, 13 Apr 2013 15:38:25 -0700 Subject: [PATCH 4/5] 1 more test to round out progress and remove unnecessary element fetch --- html/semantics/forms/the-progress-element/progress.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/semantics/forms/the-progress-element/progress.html b/html/semantics/forms/the-progress-element/progress.html index 6ddd32793c5526..1c491e9b43dbe8 100644 --- a/html/semantics/forms/the-progress-element/progress.html +++ b/html/semantics/forms/the-progress-element/progress.html @@ -11,7 +11,6 @@
\ No newline at end of file +test(function() { + assert_equals(indeterminate.max, 1); +}, "max should be 1 by default"); + + From edfd8f383a8c8d958b9a320771fd73df05c1b7a7 Mon Sep 17 00:00:00 2001 From: X1011 Date: Sat, 13 Apr 2013 16:39:34 -0700 Subject: [PATCH 5/5] move test output above test elements --- html/semantics/forms/the-progress-element/progress.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/semantics/forms/the-progress-element/progress.html b/html/semantics/forms/the-progress-element/progress.html index 1c491e9b43dbe8..3bf2970da25f6d 100644 --- a/html/semantics/forms/the-progress-element/progress.html +++ b/html/semantics/forms/the-progress-element/progress.html @@ -5,11 +5,11 @@ +
-