Skip to content

Commit ac3b0c7

Browse files
committed
move test
1 parent c03112f commit ac3b0c7

File tree

5 files changed

+301
-301
lines changed

5 files changed

+301
-301
lines changed

src/import/__snapshots__/chrome.test.ts.snap

Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,3 +2211,300 @@ Object {
22112211
exports[`importFromV8Profiler Node 10: indexToView 1`] = `0`;
22122212

22132213
exports[`importFromV8Profiler Node 10: profileGroup.name 1`] = `"example.cpuprofile"`;
2214+
2215+
exports[`importTraceEvents Chrome 141 profile with missing arg data 1`] = `
2216+
Object {
2217+
"frames": Array [
2218+
Frame {
2219+
"col": undefined,
2220+
"file": undefined,
2221+
"key": "(program):undefined:undefined:undefined",
2222+
"line": undefined,
2223+
"name": "(program)",
2224+
"selfWeight": 53210,
2225+
"totalWeight": 53210,
2226+
},
2227+
Frame {
2228+
"col": 644580,
2229+
"file": "https://example.com/example-1.js",
2230+
"key": "(anonymous example-1.js:93):https://example.com/example-1.js:93:644580",
2231+
"line": 93,
2232+
"name": "(anonymous example-1.js:93)",
2233+
"selfWeight": 668,
2234+
"totalWeight": 668,
2235+
},
2236+
Frame {
2237+
"col": 589207,
2238+
"file": "https://example.com/example-1.js",
2239+
"key": "800492:https://example.com/example-1.js:93:589207",
2240+
"line": 93,
2241+
"name": "800492",
2242+
"selfWeight": 0,
2243+
"totalWeight": 1984,
2244+
},
2245+
Frame {
2246+
"col": 44,
2247+
"file": "https://example.com/example-2.js",
2248+
"key": "a:https://example.com/example-2.js:3:44",
2249+
"line": 3,
2250+
"name": "a",
2251+
"selfWeight": 521,
2252+
"totalWeight": 1984,
2253+
},
2254+
Frame {
2255+
"col": 619289,
2256+
"file": "https://example.com/example-1.js",
2257+
"key": "467222:https://example.com/example-1.js:93:619289",
2258+
"line": 93,
2259+
"name": "467222",
2260+
"selfWeight": 0,
2261+
"totalWeight": 1595,
2262+
},
2263+
Frame {
2264+
"col": 617051,
2265+
"file": "https://example.com/example-1.js",
2266+
"key": "305089:https://example.com/example-1.js:93:617051",
2267+
"line": 93,
2268+
"name": "305089",
2269+
"selfWeight": 0,
2270+
"totalWeight": 123,
2271+
},
2272+
Frame {
2273+
"col": 198328,
2274+
"file": "https://example.com/example-3.js",
2275+
"key": "620076:https://example.com/example-3.js:128:198328",
2276+
"line": 128,
2277+
"name": "620076",
2278+
"selfWeight": 0,
2279+
"totalWeight": 123,
2280+
},
2281+
Frame {
2282+
"col": 179387,
2283+
"file": "https://example.com/example-3.js",
2284+
"key": "617233:https://example.com/example-3.js:128:179387",
2285+
"line": 128,
2286+
"name": "617233",
2287+
"selfWeight": 0,
2288+
"totalWeight": 123,
2289+
},
2290+
Frame {
2291+
"col": 283228,
2292+
"file": "https://example.com/example-3.js",
2293+
"key": "645507:https://example.com/example-3.js:128:283228",
2294+
"line": 128,
2295+
"name": "645507",
2296+
"selfWeight": 0,
2297+
"totalWeight": 123,
2298+
},
2299+
Frame {
2300+
"col": 196754,
2301+
"file": "https://example.com/example-3.js",
2302+
"key": "376719:https://example.com/example-3.js:128:196754",
2303+
"line": 128,
2304+
"name": "376719",
2305+
"selfWeight": 123,
2306+
"totalWeight": 123,
2307+
},
2308+
Frame {
2309+
"col": 617873,
2310+
"file": "https://example.com/example-1.js",
2311+
"key": "new:https://example.com/example-1.js:93:617873",
2312+
"line": 93,
2313+
"name": "new",
2314+
"selfWeight": 0,
2315+
"totalWeight": 1201,
2316+
},
2317+
Frame {
2318+
"col": 617968,
2319+
"file": "https://example.com/example-1.js",
2320+
"key": "fields:https://example.com/example-1.js:93:617968",
2321+
"line": 93,
2322+
"name": "fields",
2323+
"selfWeight": 0,
2324+
"totalWeight": 1340,
2325+
},
2326+
Frame {
2327+
"col": 277748,
2328+
"file": "https://example.com/example-3.js",
2329+
"key": "a:https://example.com/example-3.js:128:277748",
2330+
"line": 128,
2331+
"name": "a",
2332+
"selfWeight": 0,
2333+
"totalWeight": 1340,
2334+
},
2335+
Frame {
2336+
"col": 166544,
2337+
"file": "https://example.com/example-3.js",
2338+
"key": "s:https://example.com/example-3.js:128:166544",
2339+
"line": 128,
2340+
"name": "s",
2341+
"selfWeight": 0,
2342+
"totalWeight": 1340,
2343+
},
2344+
Frame {
2345+
"col": 179046,
2346+
"file": "https://example.com/example-3.js",
2347+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:179046",
2348+
"line": 128,
2349+
"name": "(anonymous example-3.js:128)",
2350+
"selfWeight": 0,
2351+
"totalWeight": 1340,
2352+
},
2353+
Frame {
2354+
"col": 277791,
2355+
"file": "https://example.com/example-3.js",
2356+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:277791",
2357+
"line": 128,
2358+
"name": "(anonymous example-3.js:128)",
2359+
"selfWeight": 0,
2360+
"totalWeight": 1340,
2361+
},
2362+
Frame {
2363+
"col": 617992,
2364+
"file": "https://example.com/example-1.js",
2365+
"key": "(anonymous example-1.js:93):https://example.com/example-1.js:93:617992",
2366+
"line": 93,
2367+
"name": "(anonymous example-1.js:93)",
2368+
"selfWeight": 0,
2369+
"totalWeight": 1340,
2370+
},
2371+
Frame {
2372+
"col": 618591,
2373+
"file": "https://example.com/example-1.js",
2374+
"key": "new:https://example.com/example-1.js:93:618591",
2375+
"line": 93,
2376+
"name": "new",
2377+
"selfWeight": 133,
2378+
"totalWeight": 1340,
2379+
},
2380+
Frame {
2381+
"col": 618167,
2382+
"file": "https://example.com/example-1.js",
2383+
"key": "u:https://example.com/example-1.js:93:618167",
2384+
"line": 93,
2385+
"name": "u",
2386+
"selfWeight": 0,
2387+
"totalWeight": 1207,
2388+
},
2389+
Frame {
2390+
"col": 618556,
2391+
"file": "https://example.com/example-1.js",
2392+
"key": "(anonymous example-1.js:93):https://example.com/example-1.js:93:618556",
2393+
"line": 93,
2394+
"name": "(anonymous example-1.js:93)",
2395+
"selfWeight": 133,
2396+
"totalWeight": 944,
2397+
},
2398+
Frame {
2399+
"col": 179492,
2400+
"file": "https://example.com/example-3.js",
2401+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:179492",
2402+
"line": 128,
2403+
"name": "(anonymous example-3.js:128)",
2404+
"selfWeight": 144,
2405+
"totalWeight": 1074,
2406+
},
2407+
Frame {
2408+
"col": 283300,
2409+
"file": "https://example.com/example-3.js",
2410+
"key": "h:https://example.com/example-3.js:128:283300",
2411+
"line": 128,
2412+
"name": "h",
2413+
"selfWeight": 139,
2414+
"totalWeight": 664,
2415+
},
2416+
Frame {
2417+
"col": 197827,
2418+
"file": "https://example.com/example-3.js",
2419+
"key": "R:https://example.com/example-3.js:128:197827",
2420+
"line": 128,
2421+
"name": "R",
2422+
"selfWeight": 525,
2423+
"totalWeight": 525,
2424+
},
2425+
Frame {
2426+
"col": 161914,
2427+
"file": "https://example.com/example-3.js",
2428+
"key": "r:https://example.com/example-3.js:128:161914",
2429+
"line": 128,
2430+
"name": "r",
2431+
"selfWeight": 0,
2432+
"totalWeight": 131,
2433+
},
2434+
Frame {
2435+
"col": 198374,
2436+
"file": "https://example.com/example-3.js",
2437+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:198374",
2438+
"line": 128,
2439+
"name": "(anonymous example-3.js:128)",
2440+
"selfWeight": 0,
2441+
"totalWeight": 131,
2442+
},
2443+
Frame {
2444+
"col": 198490,
2445+
"file": "https://example.com/example-3.js",
2446+
"key": "s:https://example.com/example-3.js:128:198490",
2447+
"line": 128,
2448+
"name": "s",
2449+
"selfWeight": 0,
2450+
"totalWeight": 131,
2451+
},
2452+
Frame {
2453+
"col": 179266,
2454+
"file": "https://example.com/example-3.js",
2455+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:179266",
2456+
"line": 128,
2457+
"name": "(anonymous example-3.js:128)",
2458+
"selfWeight": 131,
2459+
"totalWeight": 131,
2460+
},
2461+
Frame {
2462+
"col": 280331,
2463+
"file": "https://example.com/example-3.js",
2464+
"key": "(anonymous example-3.js:128):https://example.com/example-3.js:128:280331",
2465+
"line": 128,
2466+
"name": "(anonymous example-3.js:128)",
2467+
"selfWeight": 135,
2468+
"totalWeight": 135,
2469+
},
2470+
Frame {
2471+
"col": 625395,
2472+
"file": "https://example.com/example-1.js",
2473+
"key": "y:https://example.com/example-1.js:93:625395",
2474+
"line": 93,
2475+
"name": "y",
2476+
"selfWeight": 0,
2477+
"totalWeight": 0,
2478+
},
2479+
],
2480+
"name": "no-arg-data.json - CrRendererMain",
2481+
"stacks": Array [
2482+
" 315.88ms",
2483+
"(program) 53.21ms",
2484+
"(anonymous example-1.js:93) 668.00µs",
2485+
"800492;a 389.00µs",
2486+
"800492;a;467222;a 132.00µs",
2487+
"800492;a;467222;a;305089;a;620076;a;617233;a;645507;a;376719 123.00µs",
2488+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new 133.00µs",
2489+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-1.js:93);(anonymous example-3.js:128);h;R 393.00µs",
2490+
"800492;a;467222;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-1.js:93);(anonymous example-3.js:128);h 139.00µs",
2491+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-1.js:93);(anonymous example-3.js:128) 144.00µs",
2492+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-1.js:93) 133.00µs",
2493+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-3.js:128);h;R 132.00µs",
2494+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-3.js:128);r;(anonymous example-3.js:128);s;(anonymous example-3.js:128) 131.00µs",
2495+
"800492;a;467222;new;fields;a;s;(anonymous example-3.js:128);(anonymous example-3.js:128);(anonymous example-1.js:93);new;u;(anonymous example-1.js:93);(anonymous example-3.js:128);(anonymous example-3.js:128) 135.00µs",
2496+
],
2497+
}
2498+
`;
2499+
2500+
exports[`importTraceEvents Chrome 141 profile with missing arg data 2`] = `
2501+
Object {
2502+
"frames": Array [],
2503+
"name": "no-arg-data.json - CrRendererMain",
2504+
"stacks": Array [],
2505+
}
2506+
`;
2507+
2508+
exports[`importTraceEvents Chrome 141 profile with missing arg data: indexToView 1`] = `1`;
2509+
2510+
exports[`importTraceEvents Chrome 141 profile with missing arg data: profileGroup.name 1`] = `"no-arg-data.json"`;

0 commit comments

Comments
 (0)