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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/coordinates-interface-attributes.html

Issue 2671933003: Move Geolocation out from fast/dom. (Closed)
Patch Set: . Created 3 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/fast/dom/Geolocation/coordinates-interface-attributes.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/coordinates-interface-attributes.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/coordinates-interface-attributes.html
deleted file mode 100644
index cd981dbaf40756e15d20c87d1d0393d7039ab01f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/coordinates-interface-attributes.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="../../../resources/mojo-helpers.js"></script>
-<script src="resources/geolocation-mock.js"></script>
-</head>
-<body>
-<script>
-description("Test the attribute handling of the Coordinates interface");
-window.jsTestIsAsync = true;
-
-// Format: [Input], [Expected]
-// Input: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed.
-// Expected: latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed.
-var testSet = [
- [[1, 2, 3], [1, 2, 3, null, null, null, null]],
- [[2, 3, 4, undefined, undefined, undefined, 5], [2, 3, 4, null, null, null, 5]],
- [[3, 4, 5, undefined, 6, undefined, 7], [3, 4, 5, null, 6, null, 7]],
- [[4, 5, 6, undefined, 7, 8, 9], [4, 5, 6, null, 7, 8, 9]],
- [[5, 6, 7, 8, 9, 10, 11], [5, 6, 7, 8, 9, 10, 11]],
-];
-
-var currentTestIndex = -1;
-var globalCoordinates = null;
-
-geolocationServiceMock.then(mock => {
- mock.setGeolocationPermission(true);
-
- function runNextTest()
- {
- ++currentTestIndex;
- mock.setGeolocationPosition(...testSet[currentTestIndex][0]);
- }
-
- function verifyResults()
- {
- shouldBe('globalCoordinates.latitude', 'testSet[currentTestIndex][1][0]');
- shouldBe('globalCoordinates.longitude', 'testSet[currentTestIndex][1][1]');
- shouldBe('globalCoordinates.accuracy', 'testSet[currentTestIndex][1][2]');
- shouldBe('globalCoordinates.altitude', 'testSet[currentTestIndex][1][3]');
- shouldBe('globalCoordinates.altitudeAccuracy', 'testSet[currentTestIndex][1][4]');
- shouldBe('globalCoordinates.heading', 'testSet[currentTestIndex][1][5]');
- shouldBe('globalCoordinates.speed', 'testSet[currentTestIndex][1][6]');
- debug('');
- }
-
- var watchId = navigator.geolocation.watchPosition(function(position) {
- globalCoordinates = position.coords;
- verifyResults();
-
- if (currentTestIndex + 1 === testSet.length) {
- finishJSTest();
- return;
- }
- runNextTest();
- }, function(e) {
- debug("Error!: the error callback was called.");
- finishJSTest();
- });
-
- runNextTest();
-});
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698