Bug 947527 - Correct waitForPageIndex output per device. r=margaret, a=test-only