// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { assert } from 'chai';
import * as Trace from '../../models/trace/trace.js';
import * as SDK from './sdk.js';
describe('TraceObject', () => {
    describe('constructor', () => {
        it('returns an instance with identical values', () => {
            const event = {
                cat: 'disabled-by-default-devtools.timeline',
                name: 'thing',
                ph: "X" /* Trace.Types.Events.Phase.COMPLETE */,
                pid: Trace.Types.Events.ProcessID(1),
                tid: Trace.Types.Events.ThreadID(4),
                ts: Trace.Types.Timing.Micro(5e7),
                args: {
                    data: { frame: '0xA' },
                },
            };
            const traceEvents = [event];
            const traceObj = new SDK.TraceObject.TraceObject(traceEvents);
            assert.deepEqual(traceObj.traceEvents, traceEvents);
            assert.instanceOf(traceObj, SDK.TraceObject.TraceObject);
        });
    });
});
//# sourceMappingURL=TraceObject.test.js.map