Skip to content

Commit

Permalink
Test refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelczak committed Oct 2, 2019
1 parent 9ccf24a commit b10a87c
Show file tree
Hide file tree
Showing 26 changed files with 991 additions and 1,387 deletions.
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (grunt) {
},

sass: {
src: 'src/sass',
src: 'src/styles',
dist: 'dist'
}
},
Expand Down Expand Up @@ -89,11 +89,11 @@ module.exports = function (grunt) {
'test/core/build.html',
'test/core/handles.html',
'test/core/functions.html',
'test/core/response.html',
'test/core/categories.html',
'test/core/event.html',
'test/core/template.html',
'test/core/features.html'
// 'test/core/response.html',
// 'test/core/categories.html',
// 'test/core/event.html',
// 'test/core/template.html',
// 'test/core/features.html'
]
},

Expand Down
2 changes: 1 addition & 1 deletion demo/example_categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="../dist/easy-autocomplete.themes.min.css" rel="stylesheet" type="text/css">
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,600,600italic&amp;subset=latin,cyrillic-ext,greek-ext,latin-ext,cyrillic'
rel='stylesheet' type='text/css'>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_custom_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete custom template example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_duckduckgo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete duckduckgo example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete email example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_flags.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>EasyAutocomplete json example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<link href="resources/flags.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_json.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete json example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_remote.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete remote example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete simple example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_static_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete static links</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="../dist/easy-autocomplete.themes.min.css" rel="stylesheet" type="text/css">
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,700,700italic&amp;subset=latin,cyrillic-ext,greek-ext,latin-ext,cyrillic'
rel='stylesheet' type='text/css'>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_theme_funky.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<link href="../dist/easy-autocomplete.themes.min.css" rel="stylesheet" type="text/css">
<link href='//fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demo/example_theme_square.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="../dist/easy-autocomplete.themes.min.css" rel="stylesheet" type="text/css">
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,600,600italic&amp;subset=latin,cyrillic-ext,greek-ext,latin-ext,cyrillic'
rel='stylesheet' type='text/css'>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
<style>

Expand Down
2 changes: 1 addition & 1 deletion demo/example_xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>EasyAutocomplete xml example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
Expand Down
13 changes: 2 additions & 11 deletions dist/jquery.easy-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@ var EasyAutocomplete = (function (scope) {

options.list.match.method = function (element, phrase) {

if (element.search(phrase) > -1) {
return true;
} else {
return false;
}
return element.search(phrase) > -1;
};

}
Expand Down Expand Up @@ -275,7 +271,6 @@ var EasyAutocomplete = (function (scope) {
}
}


function processAfterMerge() {

if (defaults.url !== 'list-required' && typeof defaults.url !== 'function') {
Expand Down Expand Up @@ -330,11 +325,7 @@ var EasyAutocomplete = (function (scope) {
}

function isAssigned(name) {
if (defaults[name] !== undefined && defaults[name] !== null) {
return true;
} else {
return false;
}
return defaults[name] !== undefined && defaults[name] !== null;
}
function printPropertiesThatDoesntExist(consol, optionsToCheck) {

Expand Down
2 changes: 1 addition & 1 deletion dist/maps/easy-autocomplete.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/maps/easy-autocomplete.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/maps/easy-autocomplete.themes.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b10a87c

Please sign in to comment.