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

Unified Diff: sky/tests/layout/borderbox-percent-padding.sky

Issue 1215063003: Remove Sky tests that we don't intend to port to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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: sky/tests/layout/borderbox-percent-padding.sky
diff --git a/sky/tests/layout/borderbox-percent-padding.sky b/sky/tests/layout/borderbox-percent-padding.sky
deleted file mode 100644
index 2a6d4263acddb4a0f67fe3a7e8cb448e0226690d..0000000000000000000000000000000000000000
--- a/sky/tests/layout/borderbox-percent-padding.sky
+++ /dev/null
@@ -1,30 +0,0 @@
-<style>
- border-box {
- background-color: pink;
- box-sizing: border-box;
- max-width: 300px;
- padding: 0 5%;
- }
-</style>
-<container style="width: 400px">
- <border-box>
- <p>Even though the width of 'border-box' stays the same after it reaches 300px, the width available to its children decreases as its padding continues to expand. Because the padding is based off the width before it's constrained by min/max. This tests that we continue to layout the contents of border-box even when its own width remains the same.</p>
- </div>
-</container>
-
-<script>
-import "../resources/third_party/unittest/unittest.dart";
-import "../resources/unit.dart";
-
-import "dart:sky";
-
-void main() {
- initUnit();
-
- test("paragraph width should shrink", () {
- expect(document.querySelector("p").offsetWidth, equals(260));
- document.querySelector("container").style["width"] = "800px";
- expect(document.querySelector("p").offsetWidth, equals(220));
- });
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698