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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Orientation/script-tests/create-event-orientationchange.js

Issue 2217763003: Remove Blink-WebKit-only document.createEvent strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/fast/dom/Orientation/script-tests/create-event-orientationchange.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Orientation/script-tests/create-event-orientationchange.js b/third_party/WebKit/LayoutTests/fast/dom/Orientation/script-tests/create-event-orientationchange.js
deleted file mode 100644
index 59b356ae7e8635b7d288607bd3cb18d78b7d991c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Orientation/script-tests/create-event-orientationchange.js
+++ /dev/null
@@ -1,20 +0,0 @@
-description('Tests that document.createEvent() works with orientationChange if enabled')
-
-function handleTestResult()
-{
- document.getElementById('result').innerHTML = "PASS";
-}
-
-if (window.internals && internals.runtimeFlags.orientationEventEnabled) {
- window.addEventListener('orientationchange', handleTestResult, false);
-
- try {
- var event = document.createEvent("OrientationEvent");
- event.initEvent("orientationchange", false, false);
- window.dispatchEvent(event);
- } catch(e) {
- document.getElementById('result').innerHTML = "FAIL... orientationChange event doesn't appear to be enabled or implemented.";
- }
-} else {
- handleTestResult();
-}

Powered by Google App Engine
This is Rietveld 408576698