Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: client/tests/client/html/DocumentFragmentTests.dart

Issue 8416010: Further code review changes for issue 8341027. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove html/html.dart munging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/src/DocumentFragmentWrappingImplementation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/html/DocumentFragmentTests.dart
diff --git a/client/tests/client/html/DocumentFragmentTests.dart b/client/tests/client/html/DocumentFragmentTests.dart
index 4a58eb9c2bef5df9a1dcbc2bab5d57073ee60c7c..bf80bc853aa87183496d836e3847914d8f355c6b 100644
--- a/client/tests/client/html/DocumentFragmentTests.dart
+++ b/client/tests/client/html/DocumentFragmentTests.dart
@@ -301,16 +301,30 @@ testDocumentFragment() {
assertUnsupported(() => style.removeProperty('color'));
assertUnsupported(() => style.setProperty('color', 'blue'));
});
+
+ test('is equal to itself', () {
+ var fragment = new DocumentFragment();
+ Expect.equals(fragment.style, fragment.style);
+ });
});
- test('boundingClientRect has default values', () {
- var rect = new DocumentFragment().getBoundingClientRect();
- Expect.equals(0, rect.bottom);
- Expect.equals(0, rect.top);
- Expect.equals(0, rect.left);
- Expect.equals(0, rect.right);
- Expect.equals(0, rect.height);
- Expect.equals(0, rect.width);
+ group('boundingClientRect', () {
+ test('has default values', () {
+ var rect = new DocumentFragment().getBoundingClientRect();
+ Expect.equals(0, rect.bottom);
+ Expect.equals(0, rect.top);
+ Expect.equals(0, rect.left);
+ Expect.equals(0, rect.right);
+ Expect.equals(0, rect.height);
+ Expect.equals(0, rect.width);
+ });
+
+ test('boundingClientRect is equal to itself', () {
+ var fragment = new DocumentFragment();
+ Expect.equals(
+ fragment.getBoundingClientRect(),
+ fragment.getBoundingClientRect());
+ });
});
// TODO(nweiz): re-enable when const is better supported in dartc and/or frog
« no previous file with comments | « client/html/src/DocumentFragmentWrappingImplementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698