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

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

Issue 10191033: test renaming overhaul: step 4 client 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/CSSStyleDeclarationTest.dart
diff --git a/client/tests/client/html/CSSStyleDeclarationTest.dart b/client/tests/client/html/CSSStyleDeclarationTest.dart
deleted file mode 100644
index 507cca1444e43cc9bfad5de37d40d31e9c93f9a5..0000000000000000000000000000000000000000
--- a/client/tests/client/html/CSSStyleDeclarationTest.dart
+++ /dev/null
@@ -1,79 +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.
-
-#library('CSSStyleDeclarationTest');
-#import('../../../../lib/unittest/unittest.dart');
-#import('../../../../lib/unittest/html_config.dart');
-#import('dart:html');
-
-main() {
- useHtmlConfiguration();
-
- 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/AudioElementTest.dart ('k') | client/tests/client/html/CanvasPixelArrayTypeAliasTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698