blob: dac75855d17b547cf7c5761fe2ff0a3957645f3b [file] [log] [blame]
<html>
<head>
<title>commit-popup-sk demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="/res/common/js/common.js"></script>
<script src="/res/imp/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script type="text/javascript">
// Mock out login to fake that a user is logged in
sk.Login = {
then: function(f){
f({
"Email":"test@google.com",
});
}
};
// Mock out sk.post() to pretend to support adding comments.
sk.post = function(url, body) {
return new Promise(function (resolve, reject) {
resolve("Added the comment.");
});
}
</script>
<link rel=import href="commit-popup-sk.html">
</head>
<body>
<h1>commit-popup-sk demo</h1>
<commit-popup-sk
commit='{"hash":"f5d4746ad73ef5eabc927d3d988bb9ee97c77921","author":"herb (herb@google.com)","subject":"Fix asserts found in SampleApp and update the tests with additional interesting numbers.<script>alert(\"XSS IS FUN\")</script>","parent":["4534562f7600e036fd7561df1fe04dc5e58a58fc"],"body":"<div style=\"background-color:orange;\">XSS test</div> BUG=skia:\nGOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true\u0026query=source_type%3Dgm\u0026master=false\u0026issue=1717743004\n\nReview URL: https://codereview.chromium.org/1717743004\n","timestamp":"2016-02-19T16:54:12-08:00","issue":"123456789"}'
repo="skia">
</commit-popup-sk>
</body>
</html>