- Timestamp:
- 04/10/2017 09:28:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php
r5277 r5311 534 534 ), 535 535 536 /* 537 * Coordinates should take precedence over IP addresses 538 */ 539 'coordinates-over-ip-us' => array( 540 'input' => array( 541 'latitude' => '47.6062100', 542 'longitude' => '-122.3320700', 543 'ip' => '192.0.70.251', // San Francisco, USA 544 'timezone' => 'America/Los_Angeles', 545 'locale' => 'en_US', 546 ), 547 'expected' => array( 548 'description' => 'seattle', 549 'latitude' => '47.606', 550 'longitude' => '-122.332', 551 ), 552 ), 553 554 'coordinates-over-ip-africa' => array( 555 'input' => array( 556 'latitude' => '-19.634233', 557 'longitude' => '17.331767', 558 'ip' => '41.190.96.5', // Tsumeb, Namibia 559 'timezone' => 'Africa/Windhoek', 560 'locale' => 'af', 561 ), 562 'expected' => array( 563 'description' => 'otavi', 564 'latitude' => '-19.634', 565 'longitude' => '17.332', 566 ), 567 ), 536 568 537 569 /*
Note: See TracChangeset
for help on using the changeset viewer.