<commit_before>﻿///<reference path="~/../HealthMonitoring.SelfHost/Content/Scripts/angular.min.js"/>
///<reference path="~/Lib/angular-mocks.js"/>
///<reference path="~/../HealthMonitoring.SelfHost/Content/Scripts/advanced-directives.js"/>

describe("wgMultiselect directive test", function() {
    var rootScope,
        compile,
        directive,
        scope;

    function getDirectiveHtml() {
        return '<div class="wg-multiselect"> <style> .wg-multiselect { width: 15em; display: inline-block; cursor: pointer; }' +
     '.wg-selectBox { position: relative; }' +
     '.wg-selectBox select { width: 100%; height: 21px; background-color: #222222; color: #9CA99C; border-color: black; }' +
     '.wg-over-select { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }' +
     '.wg-checkboxes { border: 1px #dadada solid; position: absolute; width: 15em; background-color: #222222; }' +
     '.wg-checkboxes label { display: block; }' +
     '#checkboxes label:hover { background-color: #1e90ff; }' +
     '.helper { display: inline-block; font-size: 0.8em; margin: 0.2em; border: 1px solid gray; border-radius: 0.3em; padding: 0 0.4em 0 0.4em; }' +
     '.wg-select-item-container { text-align: left; }' +
     '.pointer { cursor: pointer; }' +
     '.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }' +
    '</style><div class="wg-selectBox" ng-click="toggleExpandSelect()"> <select> <option class="noselect">{{title}}</option> ' +
    '</select> <div class="wg-over-select"></div> </div> <div class="wg-checkboxes" ng-show="showCheckboxes"> <div class="wg-select-item-container"> ' +
    '<span ng-if="selected.length !== items.length" ng-click="onSelect(\'all\')" class="helper">&#10003;&nbsp;&nbsp;Select All</span> ' +
    '<span ng-if="selected.length" ng-click="onSelect()" class="helper">&#10007;&nbsp;&nbsp;Clear All</span> </div> ' +
    '<div ng-repeat="item in items" class="wg-select-item-container pointer"> <label for="wg-selected-{{::item}}" class="pointer noselect"> ' +
    '<input type="checkbox" id="wg-selected-{{::item}}" class="pointer" ng-click="onSelect(item)"/>{{::item}} </label> </div> </div> </div> ';
    }

    beforeEach(module('advanced.directives'));

    beforeEach(function () {
        inject(function ($compile, $rootScope, $templateCache) {<commit_msg>Simplified directive html in js test.<commit_after>﻿///<reference path="~/../HealthMonitoring.SelfHost/Content/Scripts/angular.min.js"/>
///<reference path="~/Lib/angular-mocks.js"/>
///<reference path="~/../HealthMonitoring.SelfHost/Content/Scripts/advanced-directives.js"/>

describe("wgMultiselect directive test", function() {
    var rootScope,
        compile,
        directive,
        scope;

    function getDirectiveHtml() {
        return '<div class="wg-multiselect"> <div class="wg-selectBox" ng-click="toggleExpandSelect()"> </div> </div> ';
    }

    beforeEach(module('advanced.directives'));

    beforeEach(function () {
        inject(function ($compile, $rootScope, $templateCache) {
{'fraction_non_alphanumeric': 0.19872, 'fraction_numerical': 0.0176, 'mean_word_length': 3.977707006369427, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4938733', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1001, 'n_words': 198}