test(#7708): point the chunk-boundary assertion at the normalized scan string
The PR moved the MEDIA: scan onto a backtick-normalized copy, so the guard is now matchEnd===normalized.length. Behaviour is unchanged (Codex drove the vendored parser across chunk splits); this was a stale source assertion that made the PR's own CI red on shard 4.
This commit is contained in:
1 parent
a028961133
commit
41dea5763b
1 file changed
+4
-1
@@ -386,7 +386,10 @@ class TestSmdMediaInStream(unittest.TestCase):
|
|||||||
idx = MESSAGES_JS.index("function _smdMediaAwareAddText")
|
idx = MESSAGES_JS.index("function _smdMediaAwareAddText")
|
||||||
block = MESSAGES_JS[idx:idx + 6500]
|
block = MESSAGES_JS[idx:idx + 6500]
|
||||||
self.assertIn("function _smdMediaRefHasReliableBoundary", MESSAGES_JS)
|
self.assertIn("function _smdMediaRefHasReliableBoundary", MESSAGES_JS)
|
||||||
self.assertIn("matchEnd===combined.length", block)
|
# #7708: the scan now runs over `normalized` (backtick-wrapped refs
|
||||||
|
# rewritten to bare form first); the chunk-end boundary guard is the
|
||||||
|
# same check against that string.
|
||||||
|
self.assertIn("matchEnd===normalized.length", block)
|
||||||
self.assertIn("!_smdMediaRefHasReliableBoundary(m[1])", block)
|
self.assertIn("!_smdMediaRefHasReliableBoundary(m[1])", block)
|
||||||
self.assertIn("unmatchedTail = candidate", block)
|
self.assertIn("unmatchedTail = candidate", block)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user