Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
jio
Commits
eddcb757
Commit
eddcb757
authored
Feb 06, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
searchableencryption tests live compatible
parent
791ec893
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
test/jio.storage/searchableencryptionstorage.tests.js
test/jio.storage/searchableencryptionstorage.tests.js
+21
-8
No files found.
test/jio.storage/searchableencryptionstorage.tests.js
View file @
eddcb757
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
/*jslint indent: 2, maxlen: 80, nomen: true */
/*jslint indent: 2, maxlen: 80, nomen: true */
/*global module, test, stop, start, ok, deepEqual, RSVP, jIO, test_util, sjcl,
/*global module, test, stop, start, ok, deepEqual, RSVP, jIO, test_util, sjcl,
define, Blob */
define, Blob
, searchableencryptionstorage_spec
*/
(
function
(
dependencies
,
module
)
{
(
function
(
dependencies
,
module
)
{
"
use strict
"
;
"
use strict
"
;
...
@@ -17,12 +17,21 @@
...
@@ -17,12 +17,21 @@
}([
"
rsvp
"
,
"
jio
"
,
"
qunit
"
],
function
(
RSVP
,
jIO
)
{
}([
"
rsvp
"
,
"
jio
"
,
"
qunit
"
],
function
(
RSVP
,
jIO
)
{
"
use strict
"
;
"
use strict
"
;
var
spec
;
var
spec
,
use_fake_server
=
true
,
jIOUtilAjaxWrapper
;
if
(
typeof
searchableencryptionstorage_spec
===
"
object
"
)
{
use_fake_server
=
false
;
spec
=
{
"
type
"
:
"
searchableencryption
"
,
"
url
"
:
searchableencryptionstorage_spec
.
url
,
"
password
"
:
searchableencryptionstorage_spec
.
password
};
}
else
{
spec
=
{
spec
=
{
"
type
"
:
"
searchableencryption
"
,
"
type
"
:
"
searchableencryption
"
,
"
url
"
:
"
http://fakeserver
"
,
"
url
"
:
"
http://fakeserver
"
,
"
password
"
:
"
coincoin
"
"
password
"
:
"
coincoin
"
};
};
}
function
reverse
(
promise
)
{
function
reverse
(
promise
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
,
notify
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
,
notify
)
{
...
@@ -32,7 +41,7 @@
...
@@ -32,7 +41,7 @@
});
});
}
}
jIO
.
util
.
ajax
=
(
function
()
{
jIO
UtilAjaxWrapper
=
(
function
()
{
/*jslint regexp: true */
/*jslint regexp: true */
// TEST SERVER
// TEST SERVER
var
dataBase
,
baseURLRe
=
/^http:
\/\/
fakeserver
(\/[^\/]
+
)?(\/[^\/]
+
)?
$/
;
var
dataBase
,
baseURLRe
=
/^http:
\/\/
fakeserver
(\/[^\/]
+
)?(\/[^\/]
+
)?
$/
;
...
@@ -210,6 +219,10 @@
...
@@ -210,6 +219,10 @@
return
ServerAjax
;
return
ServerAjax
;
}());
}());
if
(
use_fake_server
)
{
jIO
.
util
.
ajax
=
jIOUtilAjaxWrapper
;
}
module
(
"
Searchable Encryption Storage
"
);
module
(
"
Searchable Encryption Storage
"
);
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment