Remove macOS Mojave Specific Flags in testapi.mm
Pull request: https://github.com/WebKit/WebKit/pull/11175
<rdar://problem/106702457>