Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Yaxel Perez
jio
Commits
1b2e466a
Commit
1b2e466a
authored
Apr 12, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
global failure on browserlocalstorage.js -> fixed
browserlocalstorage.js removed
parent
67926bbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
64 deletions
+0
-64
test/browserlocalstorage.stub.js
test/browserlocalstorage.stub.js
+0
-62
test/jiotests_withoutrequirejs.html
test/jiotests_withoutrequirejs.html
+0
-2
No files found.
test/browserlocalstorage.stub.js
deleted
100644 → 0
View file @
67926bbd
"
use strict
"
;
var
localStorage
=
{};
// clear
Object
.
defineProperty
(
localStorage
,
"
clear
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
var
k
;
for
(
k
in
this
)
{
delete
this
[
k
];
}
}
});
// key
Object
.
defineProperty
(
localStorage
,
"
key
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
(
n
)
{
var
i
,
k
;
if
(
n
<
0
||
n
>=
this
.
length
)
{
return
null
;
}
for
(
k
in
this
)
{
if
(
i
===
n
)
{
return
k
;
}
i
+=
1
}
return
null
;
}
});
// length
Object
.
defineProperty
(
localStorage
,
"
length
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
true
,
value
:
0
});
// toString
Object
.
defineProperty
(
localStorage
,
"
toString
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
(
k
,
v
)
{
return
"
[object Storage]
"
;
}
});
// setItem
Object
.
defineProperty
(
localStorage
,
"
setItem
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
(
k
,
v
)
{
if
(
typeof
this
[
k
]
===
"
undefined
"
&&
typeof
v
!==
"
undefined
"
)
{
this
.
length
+=
1
;
}
this
[
k
]
=
v
.
toString
();
}
});
// getItem
Object
.
defineProperty
(
localStorage
,
"
getItem
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
(
k
)
{
return
this
[
k
]
===
undefined
?
null
:
this
[
k
];
}
});
// removeItem
Object
.
defineProperty
(
localStorage
,
"
removeItem
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
(
k
)
{
if
(
typeof
this
[
k
]
!==
"
undefined
"
)
{
this
.
length
-=
1
;
}
delete
this
[
k
];
}
});
test/jiotests_withoutrequirejs.html
View file @
1b2e466a
...
...
@@ -11,8 +11,6 @@
<script
type=
"text/javascript"
src=
"../lib/sinon/sinon.js"
></script>
<script
type=
"text/javascript"
src=
"../lib/sinon/sinon-qunit.js"
></script>
<script
type=
"text/javascript"
src=
"./browserlocalstorage.stub.js"
></script>
<script
type=
"text/javascript"
src=
"../lib/md5/md5.js"
></script>
<script
type=
"text/javascript"
src=
"../jio.js"
></script>
...
...
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