Bug 1042252 - Add some tests for NativeWindow APIs r=wesj