also looking at this
iOS: the health query pair — ratchet 31 → 29
#99
8 files
+922
-4
| @@ -64,7 +64,7 @@ swiftc -target "$TRIPLE" -sdk "$SDK" \ | ||
| 64 | 64 | "$ROOT/packages/zig/zig-out/lib/$LIB" \ |
| 65 | 65 | -framework UIKit -framework WebKit -framework Foundation -framework Security \ |
| 66 | 66 | -framework Vision -framework LocalAuthentication -framework PDFKit \ |
| 67 | -framework WatchConnectivity -framework CoreBluetooth -framework AVFoundation \ | |
| 67 | -framework WatchConnectivity -framework CoreBluetooth -framework AVFoundation -framework HealthKit \ | |
| 68 | 68 | -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker "$OUT/sim.entitlements" \ |
| 69 | 69 | -o "$APP/CraftSlice" |
| 70 | 70 | |
| @@ -350,4 +350,13 @@ C64="$(count 64)" | ||
| 350 | 350 | [ "$C64" -ge 1 ] || { echo "FAIL: stopAudioRecording did not return a real M4A"; exit 1; } |
| 351 | 351 | echo "ok: recording came back as a decodable M4A data URL (i=64 seen ${C64}x)" |
| 352 | 352 | |
| 353 | C66="$(count 66)" | |
| 354 | # HealthKit is linked and the store exists on an iPhone simulator, so this is | |
| 355 | # HKStatisticsQuery's own answer. What is asserted is that it ANSWERS: the | |
| 356 | # spec's arm has no else, so before this the promise simply stayed pending. | |
| 357 | # requestHealthAuthorization is not exercised — it presents a sheet, and | |
| 358 | # simctl has no HealthKit privacy service to pre-grant. | |
| 359 | [ "$C66" -ge 1 ] || { echo "FAIL: getHealthData neither answered nor failed — it hung"; exit 1; } | |
| 360 | echo "ok: health query answered rather than hanging (i=66 seen ${C66}x)" | |
| 361 | ||
| 353 | 362 | echo "PASS" |