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

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

Issue 10139016: Break html_tests.dart into multiple tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: client/tests/client/html/CSSStyleDeclarationTests.dart
diff --git a/client/tests/client/html/CSSStyleDeclarationTests.dart b/client/tests/client/html/CSSStyleDeclarationTests.dart
deleted file mode 100644
index 9ec2f806f784e80cd1e4d20334b89735b809d805..0000000000000000000000000000000000000000
--- a/client/tests/client/html/CSSStyleDeclarationTests.dart
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-testCSSStyleDeclaration() {
- createTestStyle() {
- return new CSSStyleDeclaration.css("""
- color: blue;
- width: 2px !important;
- -webkit-transform: rotate(90deg);
- """);
- };
-
- test('default constructor is empty', () {
- var style = new CSSStyleDeclaration();
- Expect.equals("", style.cssText);
- Expect.equals("", style.getPropertyPriority('color'));
- Expect.equals("", style.item(0));
- Expect.equals(0, style.length);
- // These assertions throw a NotImplementedException in dartium:
- // Expect.isNull(style.parentRule);
- // Expect.isNull(style.getPropertyCSSValue('color'));
- // Expect.isNull(style.getPropertyShorthand('color'));
- });
-
- test('cssText is wrapped', () {
- var style = createTestStyle();
- Expect.equals(
- "color: blue; width: 2px !important; -webkit-transform: rotate(90deg); ",
- style.cssText);
- style.cssText = "color: red";
- Expect.equals("color: red; ", style.cssText);
- });
-
- test('length is wrapped', () {
- Expect.equals(3, createTestStyle().length);
- });
-
- test('getPropertyPriority is wrapped', () {
- var style = createTestStyle();
- Expect.equals("", style.getPropertyPriority("color"));
- Expect.equals("important", style.getPropertyPriority("width"));
- });
-
- test('item is wrapped', () {
- var style = createTestStyle();
- Expect.equals("color", style.item(0));
- Expect.equals("width", style.item(1));
- Expect.equals("-webkit-transform", style.item(2));
- });
-
- test('removeProperty is wrapped', () {
- var style = createTestStyle();
- style.removeProperty("width");
- Expect.equals(
- "color: blue; -webkit-transform: rotate(90deg); ",
- style.cssText);
- });
-
- test('CSS property getters and setters', () {
- var style = createTestStyle();
- Expect.equals("blue", style.color);
- Expect.equals("2px", style.width);
- Expect.equals("rotate(90deg)", style.transform);
-
- style.color = "red";
- style.transform = "translate(10px, 20px)";
- Expect.equals(
- "color: red; width: 2px !important; -webkit-transform: translate(10px, 20px); ",
- style.cssText);
- });
-}
« no previous file with comments | « client/tests/client/html/CSSStyleDeclarationTest.dart ('k') | client/tests/client/html/DocumentFragmentTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698