blob: fcb8a12023c6b57ddfc6bb2023206cd3cd9a09db [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Jasmine test file for process_pcap.js.
*/
describe('ProcessPcap', function() {
it('should return null when file input is empty', function() {
var file = pcap.getFileFromFileInput();
expect(file).toBe(null);
});
it('should not process a log when a file is not selected', function() {
var loadPsmlAndPdmlSpy = jasmine.createSpy('pcap.loadPsmlAndPdml');
pcap.onPcapFileInputChanged();
expect(loadPsmlAndPdmlSpy).not.toHaveBeenCalled();
});
});