This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #448 from arv/fix-dom-token-list
Fix issue with DOMTokenList
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2014 The Polymer Authors. All rights reserved. | ||
* Use of this source code is goverened by a BSD-style | ||
* license that can be found in the LICENSE file. | ||
*/ | ||
|
||
suite('build.json', function() { | ||
|
||
teardown(function() { | ||
delete document.write; | ||
}); | ||
|
||
test('Ensure lists match', function(done) { | ||
var xhrJson = new XMLHttpRequest; | ||
xhrJson.open('GET', '../build.json'); | ||
xhrJson.onload = function() { | ||
var buildJson = JSON.parse(xhrJson.responseText); | ||
|
||
var xhrJs = new XMLHttpRequest; | ||
xhrJs.open('GET', '../shadowdom.js'); | ||
xhrJs.onload = function() { | ||
var sources = []; | ||
|
||
document.write = function(s) { | ||
var path = | ||
s.slice('<script src="../'.length, - '"><\/script>'.length); | ||
sources.push(path); | ||
}; | ||
|
||
('global', eval)(xhrJs.responseText); | ||
|
||
assert.deepEqual(buildJson, sources); | ||
|
||
done(); | ||
}; | ||
xhrJs.send(null); | ||
}; | ||
xhrJson.send(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters