Skip to content

Instantly share code, notes, and snippets.

@sdesai
sdesai / gist:e22a6376fc0769337b84
Last active August 29, 2015 14:10
Nested switchMap Issue?
var Observable = Rx.Observable;
// Nested SwitchLatest/SwitchMap BROKEN?
// Expecting: "A", "B" (with synchronous scheduler/execution)
// Observed: "B"
Observable.of(
Observable.of('A').switchMap(function(o) {
@sdesai
sdesai / IE11 Unit Test, dev-3.x
Created July 30, 2013 19:35
IE11/Win 8.1 Unit test results on the current dev-3.x
✓ Testing started on Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko
✗ Charts: PieSeries on Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko
in PieSeries Tests
test: addHotspot(): The coord should be the same.
Expected: 205.38843109171282 (number)
Actual: 205 (number)
► Testing... - 45% complete (135/300) 37.28 beats/sec ETA 6 minutes, 43 seconds [Blizzard] xferObject: Failed to stringify, dropping: { method: 'batch1375212088902118628.agentDisconnect',
params:
[ 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko',
@sdesai
sdesai / gist:6116133
Created July 30, 2013 19:34
IE11/Win 8.1 Unit test results on the current dev-3.x
✓ Testing started on Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko
✗ Charts: PieSeries on Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko
in PieSeries Tests
test: addHotspot(): The coord should be the same.
Expected: 205.38843109171282 (number)
Actual: 205 (number)
► Testing... - 45% complete (135/300) 37.28 beats/sec ETA 6 minutes, 43 seconds [Blizzard] xferObject: Failed to stringify, dropping: { method: 'batch1375212088902118628.agentDisconnect',
params:
[ 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko',
@sdesai
sdesai / gist:6002726
Created July 15, 2013 19:34
FF 22, scoped style, getComputedStyle bug
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type='text/javascript' src='http://yui.yahooapis.com/3.10.3/build/yui/yui.js'></script>
<title>Node</title>
</head>
<body>
<div>
<style scoped>
"test subclass can get() superclass attributes" : function() {
function MyBase() {
MyBase.superclass.constructor.apply(this, arguments);
}
Y.extend(MyBase, Y.Base, null, {
ATTRS : {
foo : {
@sdesai
sdesai / gist:5702618
Created June 4, 2013 00:17
Charts/Attribute, dataProvider, seriesKeys order of operation
# 3.10.0
dataProvider
- addAttr(dataProvider)
- setter(dataProvider)
- seriesKeysExplicitlySet === undefined
- set(seriesKeys, parsedFromDataProvider)
- set AD-HOC (not added yet)
- set value = parsedFromDataProvider
Agent connected: Chrome (26.0.1410.43) / Mac OS from 127.0.0.1
Agent connected: Safari (6.0.1) / Mac OS from 127.0.0.1
Agent connected: Firefox (19.0) / Mac OS from 127.0.0.1
Agent connected: Safari (6.0) / iOS 6.0 from 127.0.0.1
✓ Testing started on Chrome (26.0.1410.43) / Mac OS, Safari (6.0.1) / Mac OS, Firefox (19.0) / Mac OS, Safari (6.0) / iOS 6.0
# LEGITIMATE Y.clone(nodeInstance) ISSUE. ERIC IS LOOKING AT THIS
✗ Attribute on Firefox (19.0) / Mac OS
"testCloneNode" : function() {
var node = Y.Node.create("<div></div>");
var o1 = Y.clone(node);
try {
o1._node.style;
} catch (e) {
Y.Assert.fail("Barfing accessing clonedNode._node.style (amoungst other properties)");
}
@sdesai
sdesai / gist:4964570
Last active December 13, 2015 19:39
Cloning an Attribute based object with a node. Iteration order difference going from 3.8.1 to attrs-perf.
attrs-perf
Starting
cloning: _yuievt
cloning: id
cloning: events
cloning: _~yuim~_
cloning: targets
cloning: _~yuim~_
@sdesai
sdesai / gist:4740384
Last active December 12, 2015 07:58
iOS phone Issues, and scrolling
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
padding:0;
margin:0;
}
#container {