Bug 1115398 rewrite the testActiveWindow window module test from test-windows.js