样式修改
This commit is contained in:
@@ -6,11 +6,6 @@ import {
|
||||
shouldDecryptImage,
|
||||
} from "../src/lib/media/images";
|
||||
import { isHLSURL, nativeHLS, resolvePlayURL } from "../src/lib/media/playback";
|
||||
import { trackingContext } from "../src/features/playback/model";
|
||||
import {
|
||||
normalizeChannel,
|
||||
normalizeUID,
|
||||
} from "../src/components/analytics/tracker";
|
||||
|
||||
test("legacy image XOR is immutable, symmetric and changes only the first 100 bytes", () => {
|
||||
const plain = Uint8Array.from({ length: 150 }, (_, index) => index),
|
||||
@@ -75,24 +70,3 @@ test("native HLS only uses Safari and shell browsers keep the inline MSE player"
|
||||
])
|
||||
assert(!nativeHLS(video, "Mozilla iPhone Safari/604.1 " + browser));
|
||||
});
|
||||
test("drama tracking and timestamps preserve upstream field meaning", () => {
|
||||
assert.equal(trackingContext({ DramaID: 0 }), null);
|
||||
const context = trackingContext({
|
||||
DramaID: 42,
|
||||
VideoID: 101,
|
||||
Episode: 2,
|
||||
TotalEpisode: 8,
|
||||
DramaTypeID: 3,
|
||||
DramaTypeName: "都市",
|
||||
DramaTagKey: "1,2",
|
||||
DramaTagName: "剧情,原创",
|
||||
});
|
||||
assert.equal(context?.drama_id, "42");
|
||||
assert.equal(context?.episode, 2);
|
||||
assert.equal(context?.drama_content_type, "short_drama");
|
||||
assert.equal(context?.drama_tag_key, "1,2");
|
||||
assert.equal(normalizeChannel("official"), "organic");
|
||||
assert.equal(normalizeChannel("channel_A-2"), "channel_A-2");
|
||||
assert.equal(normalizeUID("stress_user"), "");
|
||||
assert.equal(normalizeUID("real_1001"), "real_1001");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user