Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / automation / tests / tabs / location.js
index 97cb461..fdeac6c 100644 (file)
@@ -7,8 +7,12 @@ var allTests = [
     function assertOkButtonLocation(event) {
       var okButton = rootNode.firstChild().firstChild();
       assertTrue('location' in okButton);
-      assertEq({left:100, top: 200, width: 300, height: 400},
-               okButton.location);
+
+      // We can't assert the left and top positions because they're
+      // returned in global screen coordinates. Just check the width and
+      // height.
+      assertEq(300, okButton.location.width);
+      assertEq(400, okButton.location.height);
       chrome.test.succeed();
     };