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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/screen-orientation/orientation-reading.html

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations Created 4 years, 10 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/screen-orientation/orientation-reading.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/screen-orientation/orientation-reading.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/screen-orientation/orientation-reading.html
deleted file mode 100644
index 460f969d6fe1a4e72659260b7010f1772a571518..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/screen-orientation/orientation-reading.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script>
-
-test(function() {
- assert_true('type' in screen.orientation);
- assert_true('angle' in screen.orientation);
-}, "Test screen.orientation properties");
-
-test(function() {
- assert_equals(screen.orientation.type, "portrait-primary");
- assert_equals(screen.orientation.angle, 0);
-}, "Test screen.orientation default values.");
-
-test(function() {
- var type = screen.orientation.type;
- var angle = screen.orientation.angle;
-
- screen.orientation.type = 'foo';
- screen.orientation.angle = 42;
-
- assert_equals(screen.orientation.type, type);
- assert_equals(screen.orientation.angle, angle);
-}, "Test that screen.orientation properties are not writable");
-
-test(function() {
- assert_equals(screen.orientation, screen.orientation);
-}, "Test that screen.orientation is always the same object");
-
-async_test(function(t) {
- var orientation = screen.orientation;
- var orientationType = screen.orientation.type;
- var orientationAngle = screen.orientation.angle;
-
- screen.orientation.unlock();
- screen.orientation.lock('landscape-primary').then(function () {
- t.step(function () {
- assert_equals(screen.orientation, orientation);
- assert_equals(screen.orientation.type, orientation.type);
- assert_equals(screen.orientation.angle, orientation.angle);
- assert_not_equals(screen.orientation.type, orientationType);
- assert_not_equals(screen.orientation.angle, orientationAngle);
- });
- t.done();
- screen.orientation.unlock();
- }, function () {
- t.step(function () {
- assert_unreached('Unexpected orientation change');
- });
- t.done();
- screen.orientation.unlock();
- });
-
-}, "Test that screen.orientation values change if the orientation changes");
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698